![]() | DateTimeExtensions Methods |
The DateTimeExtensions type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | EqualWithinTolerance |
Determines if 2 DateTime values contain the same Date and Time to within
the specified tolerance. That is, if the tolerance specified is 1 second,
the DateTime values would have to be within 1 second of each other to match.
|
![]() ![]() | GetRandom(DateTime) |
Returns a random date/time value earlier than the value specified
|
![]() ![]() | GetRandom(DateTime, DateTime) |
Returns a random date/time value between the values specified
|
![]() ![]() | To100MSPrecision(DateTime) |
Returns the specified DateTime value truncating the precision
to the previous 100 millisecond increment.
|
![]() ![]() | To100MSPrecision(NullableDateTime) |
Returns the specified DateTime value truncating the precision
to the previous 100 millisecond increment. If the nullable value
has no value, a null is returned.
|
![]() ![]() | To10MSPrecision(DateTime) |
Returns the specified DateTime value truncating the precision
to the previous 10 millisecond increment.
|
![]() ![]() | To10MSPrecision(NullableDateTime) |
Returns the specified DateTime value truncating the precision
to the previous 10 millisecond increment. If the nullable value
has no value, a null is returned.
|
![]() ![]() | ToMinutePrecision(DateTime) |
Returns the specified DateTime value truncating the precision
to the previous minute.
|
![]() ![]() | ToMinutePrecision(NullableDateTime) |
Returns the specified DateTime value truncating the precision
to the previous minute. If the nullable value has no value,
a null is returned.
|
![]() ![]() | ToOracleDate(DateTime) |
Converts the specified DateTime value into a string that PL/SQL interprets
as the DateTime value. This method is often used to create text-based
sql statements for data tier tests against an Oracle database.
|
![]() ![]() | ToOracleDate(NullableDateTime) |
Converts the specified DateTime value into a string that PL/SQL interprets
as the DateTime value. If the nullable type has no value, a string containing
the text "null" is returned. This method is often used to create text-based
sql statements for data tier tests against an Oracle database.
|
![]() ![]() | ToSecondPrecision(DateTime) |
Returns the specified DateTime value truncating the precision
to the previous second.
|
![]() ![]() | ToSecondPrecision(NullableDateTime) |
Returns the specified DateTime value truncating the precision
to the previous second. If the nullable value has no value,
a null is returned.
|