⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 localtime

📁 C实现的MUD,对大家基本入门网络游戏很有帮助!
💻
字号:
     llllooooccccaaaallllttttiiiimmmmeeee((((3333))))           MMMMuuuuddddOOOOSSSS ((((5555 SSSSeeeepppp 1111999999994444))))            llllooooccccaaaallllttttiiiimmmmeeee((((3333))))     NNNNAAAAMMMMEEEE          localtime() - convert to local time     SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS          #include <localtime.h>          mixed *localtime( int time );     DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN          localtime() converts a time value (as returned by time())          into an array of values which represents the time locally.          In the past time() was used to get the time in GMT (UTC),          and then local definitions were used to determine the local          offset from GMT.  This roundabout approach is no longer          necessary.  localtime() returns the seconds, minutes and          hours, the day, month and year, day of the week, day of the          year, the name of the local timezone and how far the MUD is          from GMT.  This information is retrieved directly from the          operating system and made available to the driver without          the use of MUD-specific configuration files.          localtime() returns an array containing the values specified          above.  The index for each value is defined symbolically in          localtime.h.  The following table summarizes the array          returned by localtime().               int  LT_SEC         Seconds after the minute (0..59)               int  LT_MIN         Minutes after the hour (0..59)               int  LT_HOUR        Hour since midnight (0..23)               int  LT_MDAY        Day of the month (1..31)               int  LT_MON         Months since January (0..11)               int  LT_YEAR        Year (guarenteed to be >= 1900)               int  LT_WDAY        Days since Sunday (0..6)               int  LT_YDAY        Days since January 1 (0..365)               int  LT_GMTOFF Seconds after GMT (UTC)               string    LT_ZONE        Timezone name     SSSSEEEEEEEE AAAALLLLSSSSOOOO          ctime(3), time(3), time_expression(3), uptime(3),          /include/localtime.h     Page 1                                          (printed 3/16/95)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -