Equate

<< Click to Display Table of Contents >>

Navigation:  EasyDotNet documentation > Classes > TSystemDateTime class >

Equate

Previous pageReturn to chapter overviewNext page

Specifies whether a System.DateTime object represents a local time, a Coordinated Universal Time (UTC), or is not specified as either local time or UTC.

 

DateTimeKindEnum             EQUATE(LONG)

DateTimeKind::Unspecified     EQUATE(0) !- The time represented is not specified as either local time or Coordinated Universal Time (UTC).

DateTimeKind::Utc             EQUATE(1) !- The time represented is UTC.

DateTimeKind::Local           EQUATE(2) !- The time represented is local time.

 

 

Defines the formatting options that customize string parsing for some date and time parsing methods.

 

DateTimeStylesEnum                   EQUATE(LONG)

DateTimeStyles::None                 EQUATE(00h) !- Default formatting options must be used.

DateTimeStyles::AllowLeadingWhite     EQUATE(01h) !- Leading white-space characters must be ignored during parsing.

DateTimeStyles::AllowTrailingWhite   EQUATE(02h) !- Trailing white-space characters must be ignored during parsing.

DateTimeStyles::AllowInnerWhite       EQUATE(04h) !- Extra white-space characters in the middle of the string must be ignored during parsing.

DateTimeStyles::AllowWhiteSpaces     EQUATE(DateTimeStyles::AllowLeadingWhite + DateTimeStyles::AllowTrailingWhite + DateTimeStyles::AllowInnerWhite) !- Extra white-space characters anywhere in the string must be ignored during parsing.

DateTimeStyles::NoCurrentDateDefault EQUATE(08h) !- If the parsed string contains only the time and not the date, the parsing methods assume the Gregorian date with year = 1, month = 1, and day = 1. If this value is not used, the current date is assumed.

DateTimeStyles::AdjustToUniversal     EQUATE(10h) !- Date and time are returned as a Coordinated Universal Time (UTC). If the input string denotes a local time, through a time zone specifier or DateTimeStyles::AssumeLocal, the date and time are converted from the local time to UTC.

                                                 !- If the input string denotes a UTC time, through a time zone specifier or DateTimeStyles::AssumeUniversal, no conversion occurs.

                                                 !- If the input string does not denote a local or UTC time, no conversion occurs and the DateTimeKind property s DateTimeKind::Unspecified.

DateTimeStyles::AssumeLocal           EQUATE(20h) !- If no time zone is specified in the parsed string, the string is assumed to denote a local time.

DateTimeStyles::AssumeUniversal       EQUATE(40h) !- If no time zone is specified in the parsed string, the string is assumed to denote a UTC.

DateTimeStyles::RoundtripKind         EQUATE(80h) !- The DateTimeKind field of a date is preserved when a SystemDateTime object is converted to a string using the "o" or "r" standard format specifier, and the string is then converted back to a SystemDateTime object.