php-nanotime icon indicating copy to clipboard operation
php-nanotime copied to clipboard

add support for file[c|m|a]time()

Open marc-mabe opened this issue 11 years ago • 3 comments

It would be really great if this could contain PHP functions to get the ctime, atime and mtime of a file with nano second precision (if possible). (http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_stat.h.html)

I know it's not part of the lib this extension wraps.

marc-mabe avatar Oct 16 '13 15:10 marc-mabe

Good idea. Let me think about the score but generally it sounds feasible.

lstrojny avatar Oct 16 '13 15:10 lstrojny

Care to submit a patch?

lstrojny avatar Oct 31 '13 21:10 lstrojny

I'm not sure if this should be part of the base library first. Secondly I'm not a C developer so I think I don't have enough knowledge to implement it but I know PHP itself uses a POSIX standard < 2008 (I think it's 2001) so I don't know how to use it.

marc-mabe avatar Nov 01 '13 06:11 marc-mabe