time

TIME(2)                    Linux Programmer's Manual                   TIME(2)



åå
       time - ç§åä½ã®æéãå¾ã

æ¸å¼
       #include <time.h>

       time_t time(time_t *t);

説æ
       time()  ã¯ãç´å (Epoch; 1970-01-01 00:00:00 (UTC)) ããã®ç§æ°ã§è¿ãã

       ãã t ã NULL ã§ãªãã£ããè¿ãå¤ã¯ t ã®æãã¦ããã¡ã¢ãªã«ãæ ¼ç´ãããã

è¿ãå¤
       æåããå ´åãç´å(the Epoch)ããã®çµéç§æ°ãè¿ããã¨ã©ã¼ã®å ´å㯠((time_t) -1)
       ãè¿ããerrno ãè¨å®ããã

ã¨ã©ã¼
       EFAULT t ãã¢ã¯ã»ã¹å¯è½ãªã¢ãã¬ã¹ç©ºéã®å¤ãæãã¦ããã

æºæ
       SVr4, 4.3BSD, C89, C99, POSIX.1-2001.  POSIX ã«ã¯ã¨ã©ã¼ç¶æã®è¦å®ã¯ãªãã

注æ
       POSIX.1 ã§ã¯ãæå®ããæå»ã¨ç´åã¨ã®éã®ç§æ°ãè¿ä¼¼ããå¤æå¼ã使ã£ã¦ã
        ãç´åããã®çµéç§æ° (seconds since the Epoch)ã ãå®ç¾©ãã¦ããã ãã®å¤æå¼ã§ã¯ã4
       ã§å²ãåããå¹´ã§ã100 ã§å²ãåããªãå¹´ã¯ãã¹ã¦éå¹´ (ä½ãã400 ã§å²ãåããå¹´ã¯éå¹´)
       ã§ããã¨ããç¹ãèæ®ããã¦ããã
       ãç´åããã®çµéç§æ°ãã¯ãç´åã¨ç¾å¨æå»ã¨ã®éã§å®éã«çµéããç§æ°ã¨åãã§ã¯ãªãã
       ãªããªãã°ãéç§ãåå¨ããããã·ã¹ãã ã®æè¨ãæ¨æºæé (standard reference)
       ã«åæãããå¿è¦ããªãããã§ããã
       ãã®å®ç¾©ã®ç®çã¯ãç´åããã®çµéç§æ°ã®è§£éã«ä¸è²«æ§ãæããããã¨ã«ãªãã ãã詳ããåçã¯
       POSIX.1 Rationale A.4.15 ãåç§ãããã¨ã

é¢é£é ç®
       date(1), gettimeofday(2), ctime(3), ftime(3), time(7)

ãã®ææ¸ã«ã¤ãã¦
       ãã® man ãã¼ã¸ã¯ Linux man-pages ããã¸ã§ã¯ãã®ãªãªã¼ã¹ 3.51 ã®ä¸é¨
       ã§ãããããã¸ã§ã¯ãã®èª¬æã¨ãã°å ±åã«é¢ããæå ±ã¯
       http://www.kernel.org/doc/man-pages/ ã«æ¸ããã¦ããã



Linux                             2011-09-09                           TIME(2)