DateTimeExtensionsBaselinedTimestamp Method

Creates a baselined timestamp which begins at the specified time interval.

Definition

Namespace: Gemstone.DateTimeExtensions
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public static DateTime BaselinedTimestamp(
	this DateTime timestamp,
	BaselineTimeInterval interval
)

Parameters

timestamp  DateTime
Timestamp to baseline.
interval  BaselineTimeInterval
BaselineTimeInterval to which timestamp should be baselined.

Return Value

DateTime
A new DateTime value that represents a baselined timestamp that begins at the specified BaselineTimeInterval.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DateTime. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

Baselining to the Second would return the DateTime value starting at zero milliseconds.
Baselining to the Minute would return the DateTime value starting at zero seconds and milliseconds.
Baselining to the Hour would return the DateTime value starting at zero minutes, seconds and milliseconds.
Baselining to the Day would return the DateTime value starting at zero hours, minutes, seconds and milliseconds.
Baselining to the Month would return the DateTime value starting at day one, zero hours, minutes, seconds and milliseconds.
Baselining to the Year would return the DateTime value starting at month one, day one, zero hours, minutes, seconds and milliseconds.

See Also