270 uint32 day_of_year() const noexcept;
305 uint32 hour() const noexcept;
355 uint32 millisecond() const noexcept;
384 uint32 minute() const noexcept;
413 uint32 month() const noexcept;
451 uint32 second() const noexcept;
465 xtd::
ticks ticks_duration() const noexcept;
523 uint32 year() const noexcept;
575 date_time add_milliseconds(
double value) const;
586 date_time add_minutes(
double value) const;
608 date_time add_seconds(
double value) const;
662 bool equals(const
date_time&) const noexcept override;
722 static
date_time from_time_t(std::time_t value);
738 static
date_time from_tm(const std::tm& value);
752 bool is_daylight_saving_time() const noexcept;
758 static
bool is_leap_year(
uint32 year);
883 int64 to_binary() const;
890 int64 to_file_time() const;
896 int64 to_file_time_utc() const;
917 const
xtd::
ustring to_long_date_string() const;
922 const
xtd::
ustring to_long_time_string() const;
927 const
xtd::
ustring to_short_date_string() const;
932 const
xtd::
ustring to_short_time_string() const;
1000 std::time_t to_time_t() const;
1006 std::tm to_tm() const;
1042 friend class time_zone_info;
1044 std::tuple<
uint32, uint32, uint32, uint32, uint32, uint32, uint32, int32> get_date_time() const;
1045 void set_date_time(uint32 year, uint32 month, uint32
day, uint32 hour, uint32 minute, uint32 second, uint32 millisecond,
date_time_kind kind);
date_time_kind
Specifies whether a DateTime object represents a local time, a Coordinated Universal Time (UTC)...
Definition: date_time_kind.h:19
Contains xtd::iequatable interface.
value_t parse(const std::string &str)
Convert a string into a type.
Definition: parse.h:23
Contains xtd::icomparable interface.
Contains xtd::month_of_year enum class.
std::chrono::duration< int64, tick > ticks
Represents a tick duration.
Definition: ticks.h:21
Defines a generalized comparison method that a value type or class implements to create a type-specif...
Definition: icomparable.h:17
month_of_year
Specifies the month of the year.
Definition: month_of_year.h:21
Contains xtd::ticks typedef.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Contains xtd::time_span typedef.
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
std::string to_string(const date_time &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: date_time.h:1063
day_of_week
Specifies the day of the week.
Definition: day_of_week.h:23
The time represented is not specified as either local time or Coordinated Universal Time (UTC)...
Contains dyas, weeks, months and years durationtypes.
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition: iequatable.h:18
Represents an instant in time, typically expressed as a date and time of day.
Definition: date_time.h:78
static const date_time min_value
Represents the smallest possible value of xtd::date_time. This field is read-only.
Definition: date_time.h:100
Contains xtd::ustring class.
Contains xtd::day_of_week enum class.
Contains xtd::object class.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
Contains xtd::date_time_kind enum class.
Represents a time interval.
Definition: time_span.h:26
int_least32_t int32
Represents a 32-bit signed integer.
Definition: types.h:129
xtd::ustring to_string() const noexcept override
Converts the value of the current xtd::date_time object to its equivalent string representation using...
int_least64_t int64
Represents a 64-bit signed integer.
Definition: types.h:140
uint_least32_t uint32
Represents a 32-bit unsigned integer.
Definition: types.h:239
static const date_time max_value
Represents the largest possible value of xtd::date_time. This field is read-only. ...
Definition: date_time.h:90