Namespaces | |
format | |
Helper types to be used with deconstruct_duration. | |
Typedefs | |
using | days = std::chrono::duration< int, std::ratio< 86400 > > |
using | weeks = std::chrono::duration< int, std::ratio< 604800 > > |
using | months = std::chrono::duration< int, std::ratio< 2629746 > > |
using | years = std::chrono::duration< int, std::ratio< 31556952 > > |
Functions | |
auto | parse_timestamp (long long val) |
auto | parse_timestamp (const config_attribute_value &val) |
auto | serialize_timestamp (const std::chrono::system_clock::time_point &time) |
auto | format_local_timestamp (const std::chrono::system_clock::time_point &time, std::string_view format="%F %T") |
template<typename Duration > | |
auto | parse_duration (const config_attribute_value &val, const Duration &def=Duration{0}) |
template<typename... Ts, typename Rep , typename Period > | |
constexpr auto | deconstruct_duration (const std::tuple< Ts... > &, const std::chrono::duration< Rep, Period > &span) |
using chrono::days = typedef std::chrono::duration<int, std::ratio<86400> > |
Definition at line 39 of file chrono.hpp.
using chrono::months = typedef std::chrono::duration<int, std::ratio<2629746> > |
Definition at line 41 of file chrono.hpp.
using chrono::weeks = typedef std::chrono::duration<int, std::ratio<604800> > |
Definition at line 40 of file chrono.hpp.
using chrono::years = typedef std::chrono::duration<int, std::ratio<31556952> > |
Definition at line 42 of file chrono.hpp.
|
constexpr |
Definition at line 76 of file chrono.hpp.
Referenced by utils::format_timespan(), and wesnothd::player_status().
|
inline |
Definition at line 61 of file chrono.hpp.
Referenced by wesnothd::ban_manager::check_ban_times(), editor::editor_controller::custom_tods_dialog(), prefs::get_chat_timestamp(), wesnothd::banned::get_human_end_time(), wesnothd::banned::get_human_start_time(), editor::initialize_addon(), lg::log_in_progress::operator|(), and wesnothd::server::searchlog_handler().
|
inline |
Definition at line 70 of file chrono.hpp.
Referenced by prefs::chat_message_aging(), prefs::countdown_action_bonus(), prefs::countdown_init_time(), prefs::countdown_reservoir_time(), prefs::countdown_turn_bonus(), gui2::gui_definition::gui_definition(), campaignd::server::load_config(), wesnothd::server::load_config(), and game_config::load_config().
|
inline |
Definition at line 51 of file chrono.hpp.
References config_attribute_value::to_long_long().
|
inline |
Definition at line 46 of file chrono.hpp.
Referenced by get_time(), campaignd::server::handle_request_campaign_list(), campaignd::server::handle_upload(), wesnothd::banned::read(), and addon_info::read().
|
inline |
Definition at line 56 of file chrono.hpp.
Referenced by campaignd::server::handle_request_campaign_list(), campaignd::server::handle_upload(), events::menu_handler::send_chat_message(), wesnothd::game::send_server_message(), wesnothd::banned::write(), and addon_info::write().