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.
Datetime Class Reference
This class Shed can be used to act as one sheduled class (of many) More...
#include <Datetime.h>
Public Member Functions | |
| Datetime (string datetime) | |
| Constructor to make a Shed from json as a string. | |
| ~Datetime () | |
| Destructor for a Datetime. | |
| int | getDay () |
| int | getMonth () |
| int | getYear () |
| int | getHour () |
| int | getMinute () |
| int | getSecond () |
| string | getDatetime () |
| string | getDate () |
| string | getTime () |
Detailed Description
This class Shed can be used to act as one sheduled class (of many)
- Version:
- 1.0
- Since:
- 2019-05-08
Definition at line 15 of file Datetime.h.
Constructor & Destructor Documentation
| Datetime | ( | string | datetime ) |
Constructor to make a Shed from json as a string.
- Parameters:
-
json is a string with the received json for one shedules class from the API
Definition at line 8 of file Datetime.cpp.
| ~Datetime | ( | ) |
Destructor for a Datetime.
Definition at line 20 of file Datetime.cpp.
Member Function Documentation
| string getDate | ( | ) |
- Returns:
- date as a string in belgium format dd/mm/yyyy
Definition at line 48 of file Datetime.cpp.
| string getDatetime | ( | ) |
- Returns:
- datetime as a string in belgium format dd/mm/yyyy hh:mm:ss
Definition at line 89 of file Datetime.cpp.
| int getDay | ( | ) |
- Returns:
- day as an int
Definition at line 24 of file Datetime.cpp.
| int getHour | ( | ) |
- Returns:
- hour as an int
Definition at line 36 of file Datetime.cpp.
| int getMinute | ( | ) |
- Returns:
- minute as an int
Definition at line 40 of file Datetime.cpp.
| int getMonth | ( | ) |
- Returns:
- month as an int
Definition at line 28 of file Datetime.cpp.
| int getSecond | ( | ) |
- Returns:
- second as an int
Definition at line 44 of file Datetime.cpp.
| string getTime | ( | ) |
- Returns:
- time as a string in belgium format hh:mm:ss
Definition at line 68 of file Datetime.cpp.
| int getYear | ( | ) |
- Returns:
- year as an int
Definition at line 32 of file Datetime.cpp.
Generated on Thu Jul 14 2022 00:56:38 by
1.7.2