clock seconds 取一个整型值
用命令可以格式化时间
clock format 时间变量 -format 参数
参数可以为:
%% Insert a %.
%a Abbreviated weekday name (Mon, Tue, etc.).
%A Full weekday name (Monday, Tuesday, etc.).
%b Abbreviated month name (Jan, Feb, etc.).
%B Full month name.
%c Locale specific date and time.
%d Day of month (01 – 31).
%H Hour in 24-hour format (00 – 23).
%I Hour in 12-hour format (00 – 12).
%j Day of year (001 – 366).
%m Month number (01 – 12).
%M Minute (00 – 59).
%p AM/PM indicator.
%S Seconds (00 – 59).
%U Week of year (01 – 52), Sunday is the first day of the week.
%w Weekday number (Sunday = 0).
%W Week of year (01 – 52), Monday is the first day of the week.
%x Locale specific date format.
%X Locale specific time format.
%y Year without century (00 – 99).
%Y Year with century (e.g. 1990)
%D Date as %m/%d/%y.