Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::chrono::local_info

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

      The classlocal_info describes the result of converting astd::chrono::local_time to astd::chrono::sys_time.

      • If the result of the conversion is unique, thenresult== local_info::unique,first is filled out with the correctstd::chrono::sys_info, andsecond is zero-initialized.
      • If thelocal_time is nonexistent, thenresult== local_info::nonexistent,first is filled out with thestd::chrono::sys_info that ends just prior to thelocal_time, andsecond is filled out with thestd::chrono::sys_info that begins just after thelocal_time.
      • If thelocal_time is ambiguous, thenresult== local_info::ambiguous,first is filled out with thestd::chrono::sys_info that ends just after thelocal_time, andsecond is filled with thestd::chrono::sys_info that starts just before thelocal_time.

      This is a low-level data structure; typical conversions fromlocal_time tosys_time will use it implicitly rather than explicitly.

      Contents

      [edit]Member constants

      Name Value
      constexpr int unique
      [static]
      0
      (public static member constant)
      constexpr int nonexistent
      [static]
      1
      (public static member constant)
      constexpr int ambiguous
      [static]
      2
      (public static member constant)

      [edit]Member objects

      Member object Type
      resultint
      first,secondstd::chrono::sys_info

      [edit]Nonmember functions

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

      [edit]Helper classes

      formatting support forlocal_info
      (class template specialization)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/chrono/local_info&oldid=161601"

      [8]ページ先頭

      ©2009-2025 Movatter.jp