Return a formatted date and time
ns_fmttime time ?formatstring?
ns_fmttime returns the specified date and time in a formatted string. This function behaves the same as the strftime function in C.
The time argument must specify the date and time as the number of seconds since 00:00:00 UTC, January 1, 1970. You can use the ns_time function to get the current time in this format.
You can use the following elements in the formatstring argument to specify how the returned string will be formatted. The default formatstring is "%a %b %d %T %Y".
locale's century number (the year divided by 100 and truncated) | |
week number of year ( 00 - 53 ), Sunday is the first day of week1 | |
week number of year ( 00 - 53 ), Monday is the first day of week 1 | |
ns_fmttime [ns_time]
Wed Oct 29 15:42:11 1997
ns_fmttime [ns_time] "%D %T"
10/29/97 15:50:26