file modification time on htc smart? | developer.brewmp.com file modification time on htc smart? | developer.brewmp.com

Developer

file modification time on htc smart?

I noticed that the posted test report for htc smart says it supports IUTime_Get(pIUTime), and that one of the fields in the returned struct is file modification time. (the other field is access time).

Documentation around the function seems scant, but I tried it and it returns SUCCESS. Unfortunately, the returned modification time always seems to match access time. The returned values don't change after file is accessed or modified. And its not clear how one is intended to interpret the times (type double). Kinda looks like seconds since sometime in 1980?

 

anyone know if/how this function works in any useful way, or if there's any other way to get at file modification time?

 

thx.

-steve

i think the API (IUTime) works fine. the values returned will depend on the attribute of the file.

when i was using this on siumlator, on a file created on windows, it was returning correct values initially.

but after some time it started returning same values for modified  & access time. - i rechecked the winwows properties of the file & found that now that was alos showing the same values for acess & modified time.
 
- yes the time retirved is no of Seconds since January 6 1980, the device reference.
you may retrive it using:-
timeJulianType jT;

 

ISHELL_GetJulianDate(pIShell, utime.nAcTime, &jT);

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

i think the API (IUTime) works fine. the values returned will depend on the attribute of the file.

when i was using this on siumlator, on a file created on windows, it was returning correct values initially.

but after some time it started returning same values for modified  & access time. - i rechecked the winwows properties of the file & found that now that was alos showing the same values for acess & modified time.
 
- yes the time retirved is no of Seconds since January 6 1980, the device reference.
you may retrive it using:-
timeJulianType jT;

 

ISHELL_GetJulianDate(pIShell, utime.nAcTime, &jT);