Zum Hauptinhalt springen

DateTimeOperationDto

Namespace: Meshmakers.Octo.Sdk.Common.EtlDataPipeline.Nodes.Transforms

Represents a date/time operation that can be performed on data.

public enum DateTimeOperationDto

Inheritance Object → ValueType → Enum → DateTimeOperationDto
Implements IComparable, ISpanFormattable, IFormattable, IConvertible

Fields​

NameValueDescription
Now0Returns the current UTC date and time.
StartOfDay1Truncates a date/time value to midnight (start of day).
AddDays2Adds a specified number of days to a date/time value.
AddHours3Adds a specified number of hours to a date/time value.
AddMinutes4Adds a specified number of minutes to a date/time value.
AddSeconds5Adds a specified number of seconds to a date/time value.
DaysBetween6Computes the whole number of days between two dates (date-only comparison).
Format7Formats a date/time value using a .NET format string.
CombineDateTime8Combines the date part from one value with the time part from another.
ExtractDate9Extracts the date part (truncates to midnight). Alias for StartOfDay.
ExtractTime10Extracts the time part as a string in "HH:mm:ss" format.
ConvertToTimeZone11Converts a UTC date/time value into the wall-clock time of an IANA time zone (for example Europe/Vienna), taking daylight saving time into account. The zone id comes from ValuePath, or from Value when no path is configured.
FromUnixTimeMilliseconds12Converts Unix time in milliseconds since 1970-01-01T00:00:00Z, read from Path, into a UTC date/time value.