Re: How to get uint64 from Gio.FileInfo

2012-07-29 Thread Yaa101
Hi Mz, Output from your uint64 is seconds. I have been there, just use a javascript Date() object and feed it seconds * 1000 as it ticks in milliseconds. Here is a routine I used in a project recently to enlighten. _dateString: function (seconds) { let desktopSettings = new Gio.Se

How to get uint64 from Gio.FileInfo

2012-07-29 Thread Mz
Hi, Guys and Girls Weird thing happened when I am trying to get File attribute from Gio.FileInfo a = Gio.file_new_for_path('/home/meng/test') //a new file I just created. b = a.query_info(Gio.FILE_ATTRIBUTE_TIME_MODIFIED,0,null) c = b.get_attribute_uint64(Gio.FILE_ATTRIBUTE_TIME_MODIFIED) //retu