Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
TimeStamp Class Reference
This class encapsulates a point in time - which means it will not change after it has been created. More...
#include <Time.h>
Public Member Functions | |
int | getYear () |
int | getMonth () |
int | getDay () |
int | getHour () |
int | getMinute () |
int | getSecond () |
int | getDayOfWeek () |
get the day of the week - monday is 0 | |
int | getDayOfYear () |
TimeStamp (time_t unixTime) | |
creates a new time stamp based on the UNIX time stamp (seconds since 1970) | |
bool | isSame (TimeStamp *ts) |
bool | isBefore (TimeStamp *ts) |
bool | isAfter (TimeStamp *ts) |
Friends | |
class | Time |
Detailed Description
This class encapsulates a point in time - which means it will not change after it has been created.
Definition at line 14 of file Time.h.
Constructor & Destructor Documentation
TimeStamp | ( | time_t | unixTime ) |
Member Function Documentation
int getDayOfWeek | ( | ) |
int getDayOfYear | ( | ) |
bool isAfter | ( | TimeStamp * | ts ) |
bool isBefore | ( | TimeStamp * | ts ) |
Generated on Tue Jul 12 2022 15:41:58 by
