DateTimeExtensions Class |
Namespace: NetQuarry
The DateTimeExtensions type exposes the following members.
Name | Description | |
---|---|---|
Convert | ||
HasTime |
Determines whether or not this date/time value includes a time (as opposed to just a date).
Note that it is impossible to distinguish between a date-only DateTime value and a DateTime
value with a time of exactly midnight.
| |
IsNoon |
Determines whether or not this date/time value represents noon on any date.
| |
IsTimeOnly |
Determines whether or not this date/time value represents a time-only without a date. Time-only values
include a date component of 1/1/0001 OR 12/30/1899 (the COM (OleAutomation) time-only date).
| |
JSDate |
Generate a javascript Date object instantiation string for this date/time.
The result will be of the form new Date(yyyy,M,d,H,m,s).
| |
RemoveDate |
Create a new date/time object removing the date component with the specified date value. The date
component is "removed" by setting it to 1899-12-30 (see IsTimeOnly(DateTime)).
See also SetDate(DateTime, DateTime).
| |
SetDate |
Create a new date/time object replacing the date component with the specified date value.
See also RemoveDate(DateTime).
| |
ToUnixTimeSeconds(DateTime) |
Converts a DateTime to an integer.
| |
ToUnixTimeSeconds(NullableDateTime) |
Converts a nullable DateTime to an integer.
| |
Truncate |
Truncates a DateTime to a specified resolution.
|