xyginext  0.2.0
Second generation of xygine game creation framework
Classes | Static Public Member Functions | List of all members
xy::SysTime Class Referencefinal

Static functions for common date/time queries using the system clock. These are not thread safe so appropriate care should be taken when accessing the time from multiple threads. More...

#include <SysTime.hpp>

Classes

struct  Data
 Struct containing data/time information. More...
 

Static Public Member Functions

static const Datanow ()
 Returns a reference to a struct containing the current system date and time information.
 
static std::uint64_t epoch ()
 Returns the time since the epoch, in seconds.
 
static std::string dateString ()
 Returns the current date as a dd/mm/yyyy formatted string.
 
static std::string timeString ()
 Returns the current system time as a HH:MM:ss formatted string.
 

Detailed Description

Static functions for common date/time queries using the system clock. These are not thread safe so appropriate care should be taken when accessing the time from multiple threads.