Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::chrono::tzdb::locate_zone

      From cppreference.com
      <cpp‎ |chrono‎ |tzdb
       
       
      Date and time library
       
      std::chrono::tzdb
      Member functions
      tzdb::locate_zone
       
      conststd::chrono::time_zone* locate_zone(std::string_view tz_name)const;
      (since C++20)

      Obtains a pointer to astd::chrono::time_zone in this database that represents the time zone designated bytz_name. Ifp is the returned pointer, then eitherp->name()== tz_name or that there is astd::chrono::time_zone_linkl in this database such thatp->name()== l.target()&& l.name()== tz_name.

      Contents

      [edit]Parameters

      tz_name - a time zone name

      [edit]Return value

      A pointer to thestd::chrono::time_zone in this database that represents the time zone designated bytz_name.

      [edit]Exceptions

      Throwsstd::runtime_error if no suchtime_zone can be found.

      [edit]Example

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

      [8]ページ先頭

      ©2009-2025 Movatter.jp