DateTime
DateTime
object can be used to access the current system time.
Import it using:
#include <prism/date_time.hpp>
The system time is the local time reported by the paired phone.
After the initial sync the device tracks time on its own and does not require phone to be paired.
The methods available on DateTime
object are:
second
int second();
Return the seconds in current time.
minute
int minute();
Return the minutes in current time.
hour
int hour();
Return the seconds in current time.
day
int day();
Return the day in current date.
month
int month();
Return the month in current date. January is month 1.
year
int year();
Return the year in current date.
weekday
int weekday();
Return the weekday of current date. Sunday is 0 and so on.