This question relates to Unix-like-systems and C. If you don't happen to 
have an answer, you can still help by making your best guess at you might 
still figure out the answer to a problem like this.

Steps to reproduce:

1. Create a new file on Android 4.2.1 at `/sdcard/file.txt`. From `adb 
shell`, note the time it was created by calling `date` and also 
double-check with `ls -l` on the file.
2. Copy-paste code described from the 
page<http://www.kernel.org/doc/man-pages/online/pages/man2/stat.2.html>for 
`stat`
3. Compile then run the program from adb shell with input argument for 
`/sdcard/file.txt`.

The output from this `<sys/stat.h>` program consistently shows the file is 
**+5 hrs. off** from the time it was actually created (noted at step 1)! 

This holds for every "time" field on the `struct stat`. Can someone please 
explain this difference between what Android's `<sys/stat.h>` function says 
and the file's **actual** last modified time?

-- 
-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel
--- 
You received this message because you are subscribed to the Google Groups 
"Android Linux Kernel Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-kernel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to