#include <xtd/console>
#include <xtd/date_time>
#include <xtd/startup>
 
 
class program {
public:
  static auto main() {
    auto dates = 
list {date_time::now(), 
date_time {2013, 9, 14, 9, 28, 0}, 
date_time {2011, 5, 28, 10, 35, 0}, 
date_time {1979, 12, 25, 14, 30, 0}};
 
    for (auto date : dates) {
      console::write_line("Day: {0:d} Time: {1:g}", date.date(), date.time_of_day());
      console::write_line("Day: {0:d} Time: {0:t}\n", date);
    }
  }
};
 
 
Represents a strongly typed list of objects that can be accessed by index. Provides methods to search...
Definition list.hpp:71
 
Represents an instant in time, typically expressed as a date and time of day.
Definition date_time.hpp:85
 
#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:175
 
The xtd::collections::generic namespace contains interfaces and classes that define generic collectio...
Definition comparer.hpp:15
 
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10