Datetime Methods |
The Datetime type exposes the following members.
Name | Description | |
---|---|---|
Clear |
Sets all parts of this Datetime object to the unset state.
| |
Clone |
Create a new Datetime object with the same value as this object.
| |
Equals |
Check value equality. Two values are equal if they have the same parts,
and those parts have the same values. e.g. 00:00 is not equal to 00:00:00.
(Overrides ObjectEquals(Object).) | |
GetHashCode |
Serves as the default hash function. (Inherited from Object.)
(Overrides ObjectGetHashCode.) | |
HasParts |
Return true if this Datetime object has all of the specified parts set.
| |
IsValid |
Check whether the value of this 'Datetime' object is valid.
The behaviour is undefined unless this object represents a date
(has YEAR, MONTH and DAY part set) or time
(has HOURS, MINUTES, SECONDS and MILLISECONDS part set).
| |
IsValidField | Obsolete.
Please use HasParts(Int32) instead.
| |
SetDate |
Sets the date portion of this Datetime object
to the specified values.
| |
SetDatetime(DateTime) |
Sets the date, time and portions of this Datetime object
using values from the specified System.DateTime.
| |
SetDatetime(Int32, Int32, Int32, Int32, Int32, Int32, Int32) |
Sets the date, time and portions of this Datetime object
to the specified values.
| |
SetDatetimeTz |
Sets the date, time and timezone offset portions
of this Datetime object to the specified values.
| |
SetDateTz |
Sets the date and timezone offset portions of
this Datetime object to the specified values.
| |
SetTime |
Sets the time portions of this Datetime object
to the specified values.
| |
SetTimeTz |
Setsthe time and timezone offset portions of
this Datetime object to the specified values.
| |
ToString |
Converts the Date and Time represented by this Datetime object to String.
(Overrides ObjectToString.) | |
ToSystemDateTime |
Converts this BLP Datetime object into System.DateTime object.
|