Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      Date and time utilities

      From cppreference.com
      <c
       
       
      Date and time utilities
      Functions
      Time manipulation
      Format conversions
      (deprecated in C23)(C11)
      (deprecated in C23)(C11)
      Constants
      Types
       

      Contents

      [edit]Functions

      Time manipulation
      Defined in header<time.h>
      computes the difference between times
      (function)[edit]
      returns the current calendar time of the system as time since epoch
      (function)[edit]
      returns raw processor clock time since the program is started
      (function)[edit]
      returns the calendar time in seconds and nanoseconds based on a given time base
      (function)[edit]
      returns the resolution of calendar time based on a given time base
      (function)[edit]
      Format conversions
      Defined in header<time.h>
      (deprecated in C23)(C11)
      converts atm object to a textual representation
      (function)[edit]
      (deprecated in C23)(C11)
      converts atime_t object to a textual representation
      (function)[edit]
      converts atm object to custom textual representation
      (function)[edit]
      Defined in header<wchar.h>
      converts atm object to custom wide string textual representation
      (function)[edit]
      Defined in header<time.h>
      converts time since epoch to calendar time expressed as Coordinated Universal Time (UTC)
      (function)[edit]
      converts time since epoch to calendar time expressed as local time
      (function)[edit]
      converts calendar time to time since epoch
      (function)[edit]

      [edit]Constants

      Defined in header<time.h>
      number of processor clock ticks per second
      (macro constant)[edit]

      [edit]Types

      Defined in header<time.h>
      calendar time type
      (struct)[edit]
      calendar time since epoch type
      (typedef)[edit]
      processor time since era type
      (typedef)[edit]
      time in seconds and nanoseconds
      (struct)[edit]

      [edit]References

      • C23 standard (ISO/IEC 9899:2024):
      • 7.27 Date and time <time.h> (p: TBD)
      • 7.29.5.1 The wcsftime function (p: TBD)
      • 7.31.14 Date and time <time.h> (p: TBD)
      • C17 standard (ISO/IEC 9899:2018):
      • 7.27 Date and time <time.h> (p: 284-291)
      • 7.29.5.1 The wcsftime function (p: 320-321)
      • 7.31.14 Date and time <time.h> (p: 333)
      • C11 standard (ISO/IEC 9899:2011):
      • 7.27 Date and time <time.h> (p: 388-397)
      • 7.29.5.1 The wcsftime function (p: 439-440)
      • 7.31.14 Date and time <time.h> (p: 456)
      • C99 standard (ISO/IEC 9899:1999):
      • 7.23 Date and time <time.h> (p: 338-347)
      • 7.24.5.1 The wcsftime function (p: 385-386)
      • C89/C90 standard (ISO/IEC 9899:1990):
      • 4.12 DATE AND TIME <time.h>

      [edit]See also

      C++ documentation forC Date and time utilities
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=c/chrono&oldid=180683"

      [8]ページ先頭

      ©2009-2025 Movatter.jp