Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::chrono::sys_info

      From cppreference.com
      <cpp‎ |chrono
       
       
      Date and time library
       
      std::chrono::sys_info
      Non-member functions
      Helper classes
       
      Defined in header<chrono>
      struct sys_info;
      (since C++20)

      The classsys_info describes time zone information associated with a time zone at a particular point in time (represented as either astd::chrono::sys_time or astd::chrono::local_time). This is a low-level data structure typically not used directly by user code.

      Contents

      [edit]Member objects

      Member object Type
      begin,endstd::chrono::sys_seconds
      offsetstd::chrono::seconds
      savestd::chrono::minutes
      abbrevstd::string

      Thebegin andend data members indicate the range -[beginend) - in which theoffset andabbrev are in effect for the time zone associated with thissys_info.

      Theoffset andabbrev data member indicate the UTC offset and time zone abbreviation, respectively, in effect for the associated time zone andstd::chrono::time_point. Note that time zone abbreviations are not unique.

      Thesave data member, if nonzero, indicates that the time zone is on daylight saving time at the specified time point. In this case,offset- save is a suggestion of what offset this time zone might use if it were off daylight saving time. However, this information is not authoritative: the only way to ascertain the actual offset is to query the time zone with a time point that is actually off daylight savings time (i.e. returns asys_info such thatsave== 0min).

      [edit]Nonmember functions

      (C++20)
      outputs asys_info into a stream
      (function template)[edit]

      [edit]Helper classes

      formatting support forsys_info
      (class template specialization)[edit]

      [edit]Example

      This section is incomplete
      Reason: no example
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/chrono/sys_info&oldid=154385"

      [8]ページ先頭

      ©2009-2025 Movatter.jp