#include <xtd/console>
#include <xtd/date_time>
#include <xtd/startup>
class program {
public:
static auto main() {
display_now("utc_now: ...........", save_utc_now);
display_now("now: ...............", save_now);
display("utc: ...............", my_dt);
display("local: .............", my_dt);
display("unspecified: .......", my_dt);
}
static void display(
const string& title,
const date_time& input_dt) {
auto disp_dt = input_dt;
auto dt_string = string::empty_string;
}
static void display_now(
const string& title,
const date_time& input_dt) {
}
};
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
Represents an instant in time, typically expressed as a date and time of day.
Definition date_time.hpp:85
xtd::string to_string() const noexcept override
Converts the value of the current xtd::date_time object to its equivalent string representation using...
static date_time utc_now() noexcept
Gets a xtd::date_time object that is set to the current date and time on this computer,...
date_time to_universal_time() const
Converts the value of the current xtd::date_time object to Coordinated Universal Time (UTC).
date_time to_local_time() const
Converts the value of the current xtd::date_time object to local time.
date_time_kind kind() const noexcept
Gets a value that indicates whether the time represented by this instance is based on local time,...
static date_time now() noexcept
Gets a xtd::date_time object that is set to the current date and time on this computer,...
static date_time specify_kind(const date_time &value, date_time_kind kind)
Creates a new xtd::date_time object that has the same number of ticks as the specified xtd::date_time...
#define startup_(main_method)
Defines the entry point to be called when the application loads. Generally this is set either to the ...
Definition startup.hpp:168
@ utc
The time represented is UTC.
Definition date_time_kind.hpp:25
@ unspecified
The time represented is not specified as either local time or Coordinated Universal Time (UTC).
Definition date_time_kind.hpp:23
@ local
The time represented is local time.
Definition date_time_kind.hpp:27
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8