File modification time: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 1,060: | Line 1,060: | ||
Sets the last access time to now, |
Sets the last access time to now, |
||
while restoring the modification time to what it was before. |
while restoring the modification time to what it was before. |
||
=={{header|Phix}}== |
|||
<lang Phix>constant filename = "test.txt" |
|||
?get_file_date(filename) |
|||
include timedate.e |
|||
?format_timedate(get_file_date(filename)) |
|||
bool res = set_file_date(filename) |
|||
?format_timedate(get_file_date(filename))</lang> |
|||
{{out}} |
|||
<pre> |
|||
{2019,5,2,14,46,40} |
|||
"2:46pm Thursday May 02nd, 2019" |
|||
"12:25pm Wednesday May 08nd, 2019" |
|||
</pre> |
|||
=={{header|PHP}}== |
=={{header|PHP}}== |