[This is preliminary documentation and is subject to change.]
A Token representing a DateTime literal in the source
text.
Declaration Syntax
C# |
public class DateTimeToken : Token
Members
All Members | Methods | Properties | |||
Icon | Member | Description |
---|---|---|
DecimalValue | Gets the value of this token as a decimal number. Must be
overridden in derived classes. (Inherited from Token.) | |
Equals(Object) | (Inherited from Object.) | |
Finalize()()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
FloatingValue | Gets the value of this token as a floating point number. Must be
overridden in derived classes. (Inherited from Token.) | |
GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
HasDecimalValue | Gets whether this token has a decimal value. Must be overridden
in derived classes. (Inherited from Token.) | |
IntegerValue | Gets the value of this token as an integer number. Must be
overridden in derived classes. (Inherited from Token.) | |
MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
Section | Gets the Section denoting the range of characters
corresponding to this token in the source text. (Inherited from Token.) | |
SetPattern(String) | Sets a new regular expression pattern for matching datetime Tokens.
| |
ToString()()()() |
Creates a short string representation of the value of this token.
(Overrides Object.ToString()()()().) | |
Value |
Gets the value of this DateTime token.
|
Remarks
By default, the literal can consist of a date, a time or both
separated by whitespace. The format can be any which is accepted by the
DateTime.TryParse method.