Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::chrono::time_zone

      From cppreference.com
      <cpp‎ |chrono
       
       
      Date and time library
       
       
      Defined in header<chrono>
      class time_zone;
      (since C++20)

      The classtime_zone represents all time zone transitions for a specific geographic area.

      Users cannot constructtime_zone objects. The library implementation createstime_zone objects when it initializes thetime zone database and providesconst access to these objects.

      time_zone is not copyable but does have a defaulted move constructor and a defaulted move assignment operator. However, as users have onlyconst access totime_zone objects, these functions cannot be called in user code without invokingundefined behavior.

      [edit]Member functions

      obtains the name of thistime_zone
      (public member function)[edit]
      obtain information associated with asys_time orlocal_time
      (public member function)[edit]
      converts alocal_time in this time zone to asys_time
      (public member function)[edit]
      converts asys_time to alocal_time in this time zone
      (public member function)[edit]

      [edit]Nonmember functions

      compares twotime_zone objects
      (function)[edit]

      [edit]Example

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

      [8]ページ先頭

      ©2009-2025 Movatter.jp