Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::chrono::file_clock

      From cppreference.com
      <cpp‎ |chrono
       
       
      Date and time library
      Time point
      (C++11)
      (C++20)
      Duration
      (C++11)
      Clocks
      (C++20)
      (C++20)
      (C++20)
      (C++20)
      file_clock
      (C++20)
      (C++20)
      Time of day
      (C++20)(C++20)
      (C++20)(C++20)
      (C++20)
       
       
      Defined in header<chrono>
      using file_clock=/* see below */;
      (since C++20)

      std::chrono::file_clock is an alias for the clock used forstd::filesystem::file_time_type. Its epoch is unspecified.

      file_clock meets theTrivialClock requirements.

      Contents

      Time point family

      Defined in namespacestd::chrono
      template<class Duration>
      using file_time=std::chrono::time_point<std::chrono::file_clock, Duration>;
      (since C++20)
      performs stream output on afile_time
      (function template)[edit]
      parses afile_time from a stream according to the provided format
      (function template)[edit]
      formatting support forfile_time
      (class template specialization)[edit]

      [edit]Member types

      Member type Definition
      rep signed arithmetic type representing the number of ticks in the clock's duration
      period astd::ratio type representing the tick period of the clock, in seconds
      durationstd::chrono::duration<rep, period>, capable of representing negative durations
      time_pointstd::chrono::time_point<std::chrono::file_clock>

      [edit]Member constants

      constexpr bool is_steady
      [static]
      true if the time between ticks is always constant, i.e. calls tonow() return values that increase monotonically even in case of some external clock adjustment, otherwisefalse
      (public static member constant)

      [edit]Member functions

      file_clock provides exactly one of the following two pairs of static member functions:

      • to_utc andfrom_utc; or
      • to_sys andfrom_sys.
      [static]
      returns astd::chrono::time_point representing the current point in time
      (public static member function)[edit]
      [static](optional)
      converts betweenfile_time andutc_time
      (public static member function)[edit]
      [static](optional)
      converts betweenfile_time andsys_time
      (public static member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/chrono/file_clock&oldid=161581"

      [8]ページ先頭

      ©2009-2025 Movatter.jp