示例#1
0
 def need_update(self, output_file, paths, version):
     output_filename = self.output_filename(output_file, version)
     return (int(time.mktime(storage.modified_time(output_filename).timetuple())) < int(version)), version
示例#2
0
 def version(self, paths):
     # Return the modification time for the newest source file
     return str(max(
         [int(time.mktime(storage.modified_time(path).timetuple())) for path in paths]
     ))
示例#3
0
 def time_for_file(self, path):
     return int(time.mktime(storage.modified_time(path).timetuple()))