DateTimeExtensionsBaselinedTimestamp Method
Creates a baselined timestamp which begins at the specified time interval.
Namespace: Gemstone.DateTimeExtensionsAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
<ExtensionAttribute>
Public Shared Function BaselinedTimestamp (
timestamp As DateTime,
interval As BaselineTimeInterval
) As DateTime
public:
[ExtensionAttribute]
static DateTime BaselinedTimestamp(
DateTime timestamp,
BaselineTimeInterval interval
)
Gemstone.DateTimeExtensions.DateTimeExtensions.BaselinedTimestamp = function(timestamp, interval);
- timestamp DateTime
- Timestamp to baseline.
- interval BaselineTimeInterval
- BaselineTimeInterval to which timestamp should be baselined.
DateTime
A new
DateTime value that represents a baselined timestamp that begins at the
specified
BaselineTimeInterval.
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).
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.