📄 ctime.3
字号:
.th CTIME III 10/15/73.sh NAMEctime, localtime, gmtime \*- convert date and time to ASCII.sh SYNOPSIS.ft Bchar *ctime(tvec).brint tvec[2];.s3.ft R[from Fortran].br.ft Bdouble precision ctime.br.li... = ctime(dummy).s3int *localtime(tvec).brint tvec[2];.s3int *gmtime(tvec).brint tvec[2];.br.ft R.sh DESCRIPTION.it Ctimeconverts a time in the vector.it tvecsuch as returned by time (II)into ASCIIand returns a pointer to acharacter stringin the form.s3 Sun Sep 16 01:03:52 1973\\n\\0.s3All the fields have constant width..s3The.it localtimeand.it gmtimeentries return pointers to integer vectors containingthe broken-down time..it Localtimecorrects for the time zone and possible daylight savings time;.it gmtimeconverts directly to GMT, which is the time UNIX uses.The value is a pointerto an array whose components are.s3.lp +5 50 seconds.lp +5 51 minutes.lp +5 52 hours.lp +5 53 day of the month (1-31).lp +5 54 month (0-11).lp +5 55 year \*- 1900.lp +5 56 day of the week (Sunday = 0).lp +5 57 day of the year (0-365).lp +5 58 Daylight Saving Time flag if non-zero.i0.s3The external variable.it timezonecontains the difference, in seconds, between GMT and localstandard time (in EST, is 5*60*60);the external variable.it daylightis non-zero iff the standard U.S.A. DaylightSavings Time conversion should be applied.The program knows about the peculiaritiesof this conversion in 1974 and 1975;if necessary,a table for these years can be extended..s3A routine named.it ctimeis also available from Fortran.Actually it more resembles the.it time(II) system entry in that it returns the number of secondssince the epoch0000 GMT Jan. 1, 1970(as a floating-point number)..sh "SEE ALSO"time(II).sh BUGS
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -