UNIX Command Example: File Last Modification UTC GMT Date Time in Seconds

UNIX Command Example: File Last Modification UTC or GMT Date Time in Seconds

Logon to UNIX command prompt then copy & past the bellow code to get the desired result:

   date -u -r test.txt +%s
   Here "date -u" is the command to UTC or GMT Date Time in Seconds
   "date -u -r test.txt" is to Display File Last Modification information in UTC or GMT Date Time
   "test.txt" is the sample file
   & "+%s" is to Display Date Time Information in Seconds
   If everything went well you should get some interesting result as follows:

UNIX Command Example: File Last Modification UTC or GMT Date Time in Seconds - Output in the UNIX command prompt

No comments:

Post a Comment

leave your comments here..