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 {
19 enum class date_time_kind {
23 utc,
25 local,
26 };
27}
28
30template<> struct xtd::enum_register<xtd::date_time_kind> {
31 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"}};}
32};
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:19
std::vector< std::pair< enum_t, xtd::ustring > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition enum_collection.h:19
@ 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:36