string time(string format)

Return current date/time using given format string If format string is "ISO", return time in ISO format. If format string is not specified or empty, return in default localized format. Format string may contain following:
d day without leading zero
dd day with leading zero
ddd short localized day name
dddd long localized day name
M month without leading zero
MM month with leading zero
MMM short localized month name
MMMM long localized month name
yy two digit year
yyyy four digit year
h hour without leading zero
hh hour with leading zero
m minute without leading zero
mm minute with leading zero
s second without leading zero
ss second with leading zero
z milliseconds without leading zeroes
zzz milliseconds with leading zeroes
AP use AM/PM display. AP will be replaced by either "AM" or "PM".
ap use am/pm display. ap will be replaced by either "am" or "pm".
Anything else is left as is.