xtd 0.2.0
Loading...
Searching...
No Matches
date_time_kind.h
Go to the documentation of this file.
1
4#pragma once
5#include "enum.h"
6
8namespace xtd {
21 enum class date_time_kind {
25 utc,
27 local,
28 };
29}
30
32template<> struct xtd::enum_register<xtd::date_time_kind> {
33 explicit operator auto() const noexcept {return xtd::enum_collection<xtd::date_time_kind> {{xtd::date_time_kind::unspecified, "unspecified"}, {xtd::date_time_kind::utc, "utc"}, {xtd::date_time_kind::local, "local"}};}
34};
Contains enum_ and enum_ut_ keywords.
date_time_kind
Specifies whether a DateTime object represents a local time, a Coordinated Universal Time (UTC),...
Definition date_time_kind.h:21
std::vector< xtd::collections::generic::key_value_pair< enum_t, xtd::string > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition enum_collection.h:22
@ utc
The time represented is UTC.
@ unspecified
The time represented is not specified as either local time or Coordinated Universal Time (UTC).
@ local
The time represented is local time.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Provides the registration struct for enumerations.
Definition enum_register.h:38