xtd 0.2.0
date_time_kind.h
Go to the documentation of this file.
1 #pragma once
5 #include "enum.h"
6 
8 namespace xtd {
19  enum class date_time_kind {
23  utc,
25  local,
26  };
27 }
28 
30 template<> 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 };
date_time_kind
Specifies whether a DateTime object represents a local time, a Coordinated Universal Time (UTC)...
Definition: date_time_kind.h:19
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
The time represented is UTC.
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
Contains enum_ and enum_ut_ keywords.
The time represented is not specified as either local time or Coordinated Universal Time (UTC)...
The time represented is local time.
Provides the registration struct for enumerations.
Definition: enum_register.h:36