📄 time.2
字号:
.TH TIME 2 .SH NAMEtime, ftime \- get date and time.SH SYNOPSIS.B long time(0).PP.B long time(tloc).br.B long *tloc;.sp.B #include <sys/types.h>.br.B #include <sys/timeb.h>.br.B ftime(tp).br.B struct timeb *tp;.SH DESCRIPTION.I Timereturns the time since 00:00:00 GMT, Jan. 1, 1970, measuredin seconds..PPIf.I tlocis nonnull,the return value is also stored in theplace to which.I tlocpoints..PPThe.I ftimeentry fills in a structure pointed to by its argument,as defined by.IR <sys/timeb.h> :.PP.nf.ta .5i +\w'unsigned 'u.so /usr/include/sys/timeb.h.fi.PPThe structure contains the time since the epoch in seconds,up to 1000 milliseconds of more-precise interval,the local timezone (measured in minutes of time westward from Greenwich),and a flag that, if nonzero, indicates thatDaylight Saving time applies locally during the appropriate part of the year..SH "SEE ALSO"date(1), stime(2), ctime(3).SH ASSEMBLER(ftime = 35.).br.B sys ftime; bufptr.PP(time = 13.; obsolete call).br.B sys time.br(time since 1970 in r0-r1)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -