EDMDateTime Class Reference
Date format class.
More...
List of all members.
|
Static Public Member Functions |
static String | GetTime (String Hours, String Mins, String Secs) |
| Format a time.
|
static String | GetDate (String Month, String Day, String Year) |
| Format a date.
|
Detailed Description
A class that can be used to format times or dates. Created simply because I'm lazy :P
Member Function Documentation
static String GetTime |
( |
String |
Hours, |
|
|
String |
Mins, |
|
|
String |
Secs | |
|
) |
| | [static] |
Create a string based on the time.
- Parameters:
-
| Hours | The hour, in 24-hour format |
| Mins | The minute |
| Secs | The second |
- Returns:
- A formatted string (in 12 hour format) like this: "Time: (Hours):(Mins):(Secs) AM/PM"
static String GetDate |
( |
String |
Month, |
|
|
String |
Day, |
|
|
String |
Year | |
|
) |
| | [static] |
Create a (North American formatted) string based on the date.
- Parameters:
-
| Month | The month (1 - 12) |
| Day | The day of the month |
| Year | The year |
- Returns:
- A formatted string like this: "Date: (Month)/(Day)/(Year)"