Groups | |
| DayOfWeek | |
| MonthOfYear | |
Classes | |
| struct | DateTime |
| class | DateTimeControl |
| class | DateTimeData |
Macros | |
| #define | DATETIME_TIME_CONTROL |
| #define | DATETIME_DATE_CONTROL |
| #define | DATETIME_NOW_BUTTON |
| #define | DATETIME_NO_SECONDS |
| #define | DATETIME_SHOW_LABELS |
Constructors | |
| DateTime () | |
| DateTime (Int32 t_year, Int32 t_month, Int32 t_day, Int32 t_hour, Int32 t_minute, Int32 t_second) | |
Operators | |
| Bool | operator== (const DateTime &b) const |
| Bool | operator!= (const DateTime &b) const |
| Bool | operator<= (const DateTime &b) const |
| Bool | operator< (const DateTime &b) const |
| Bool | operator>= (const DateTime &b) const |
| Bool | operator> (const DateTime &b) const |
| #define DATETIME_TIME_CONTROL |
Bool true, if it is a clock.
| #define DATETIME_DATE_CONTROL |
Bool true, if it is a calendar.
| #define DATETIME_NOW_BUTTON |
Bool true, to add "Now" button.
| #define DATETIME_NO_SECONDS |
Bool true, to not show seconds.
| #define DATETIME_SHOW_LABELS |
Bool true, to show the "Date" and "Time" labels if the GUI is collapsed.
| DateTime | ( | ) |
Default constructor. (Sets the time to 2000-01-01 00:00:00.)
Creates a date and time with the given year/month/day and hour/minute/seconds.
| [in] | t_year | Year. |
| [in] | t_month | Month. |
| [in] | t_day | Day in month. |
| [in] | t_hour | Hour. |
| [in] | t_minute | Minute. |
| [in] | t_second | Second. |
Equality operator. Checks if the date time is equal to another.
| [in] | b | The right-operand date time. |
Inequality operator. Checks if the date time is not equal to another.
| [in] | b | The right-operand date time. |
Less than or equal operator. Checks if the date time is less than or equal to another.
| [in] | b | The right-operand date time. |
Less than operator. Checks if the date time is less than another.
| [in] | b | The right-operand date time. |
Greater than or equal operator. Checks if the date time is greater than or equal to another.
| [in] | b | The right-operand date time. |
Greater than operator. Checks if the date time is greater than another.
| [in] | b | The right-operand date time. |
Compare date times a and b.
| [in] | a | The first date time. |
| [in] | b | The second date time. |
|
private |
|
private |
| DateTime GetDateTime | ( | ) | const |
Retrieves the date time.
Sets the date time.
| [in] | d | The date time to set. |
| [in] | bSetDate | If false the date part of d is discarded. Default to true. |
| [in] | bSetTime | If false the time part of d is discarded. Default to true. |
|
private |
|
private |
|
static |
|
static |
| DateTime GetDateTime | ( | ) | const |
Retrieves the date time.
Sets the date time.
| [in] | d | The date time to set. |
| [in] | bSetDate | If false the date part of d is discarded. Default to true. |
| [in] | bSetTime | If false the time part of d is discarded. Default to true. |
Gets the Modified Julian Date (http://tycho.usno.navy.mil/mjd.html) from t.
| [in] | t | A date time. |
Gets a date time from the Modified Julian Date (http://tycho.usno.navy.mil/mjd.html) j.
| [in] | j | A Modified Julian Date. |
| void GetDateTimeNow | ( | DateTime & | t | ) |
Retrieves the current system date time.
| [out] | t | Filled with the current system time. |
| void GetDateTimeNowGM | ( | DateTime & | t | ) |
Retrieves the current system date time in GMT.
| [out] | t | Filled with the current system GMT time. |
Converts local time to GMT depending on the OS time zone settings.
| [in] | tLocal | The local time. |
| [out] | tGMT | Filled with the calculated GMT time, or tLocal if an error occurred. |
Converts GMT time to local depending on the OS time zone settings.
| [in] | tGMT | The GMT time. |
| [out] | tLocal | Filled with the calculated local time, or tGMT if an error occurred. |
Gets the day of the week of the date lYear-lMonth-lDay.
| [in] | lYear | The year. |
| [in] | lMonth | The month number. (1 means January.) |
| [in] | lDay | The day in the month. |
Formats the given date time t and output it as a string.
| [in] | pszFormat | The format options (same as strftime() format). |
| [in] | t | The date time to format. |
Parses a time string (e.g. "12:34:56").
| [in] | timestr | The time string to parse. The format is "hour:minute:second". |
| [out] | hour | Assigned the parsed hour. |
| [out] | minute | Assigned the parsed minute. |
| [out] | second | Assigned the parsed second. |
Parses a date string (e.g. "1/4/2010").
| [in] | datestr | The date string to parse. The format is "day/month/year". |
| [out] | year | Assigned the parsed year. |
| [out] | month | Assigned the parsed month. |
| [out] | day | Assigned the parsed day. |
Converts a time as a formatted string (e.g. "12:34:56").
| [in] | d | The date time. |
| [in] | bShowSeconds | true to include seconds into the time string. Default to true. |
Converts a date as a formatted string.
| [in] | d | The date time. |
Retrieves the name of a month in the current Cinema 4D interface language.
| [in] | month | The month: MonthOfYear |
Tries to correct invalid date values, e.g. keeping the values within valid limits.
| [out] | year | Assigned the corrected year. |
| [out] | month | Assigned the corrected month. |
| [out] | day | Assigned the corrected day. |
Tries to correct invalid time values, e.g. keeping the values within valid limits.
| [out] | hour | Assigned the corrected hour. |
| [out] | minute | Assigned the corrected minute. |
| [out] | second | Assigned the corrected second. |
| Int32 year |
Year.
| Int32 month |
Month.
| Int32 day |
Day in month.
| Int32 hour |
Hour.
| Int32 minute |
Minute.
| Int32 second |
Second.
| MONDAY |
| TUESDAY |
| WEDNESDAY |
| THURSDAY |
| FRIDAY |
| SATURDAY |
| SUNDAY |
| JANUARY |
| FEBRUARY |
| MARCH |
| APRIL |
| MAY |
| JUNE |
| JULY |
| AUGUST |
| SEPTEMBER |
| OCTOBER |
| NOVEMBER |
| DECEMBER |