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
| Name | Value | Description |
|---|---|---|
| Now | 0 | Returns the current UTC date and time. |
| StartOfDay | 1 | Truncates a date/time value to midnight (start of day). |
| AddDays | 2 | Adds a specified number of days to a date/time value. |
| AddHours | 3 | Adds a specified number of hours to a date/time value. |
| AddMinutes | 4 | Adds a specified number of minutes to a date/time value. |
| AddSeconds | 5 | Adds a specified number of seconds to a date/time value. |
| DaysBetween | 6 | Computes the whole number of days between two dates (date-only comparison). |
| Format | 7 | Formats a date/time value using a .NET format string. |
| CombineDateTime | 8 | Combines the date part from one value with the time part from another. |
| ExtractDate | 9 | Extracts the date part (truncates to midnight). Alias for StartOfDay. |
| ExtractTime | 10 | Extracts the time part as a string in "HH:mm:ss" format. |
| ConvertToTimeZone | 11 | Converts 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. |
| FromUnixTimeMilliseconds | 12 | Converts Unix time in milliseconds since 1970-01-01T00:00:00Z, read from Path, into a UTC date/time value. |
| ConvertFromTimeZone | 13 | Reads the source value as wall-clock time in an IANA time zone (for example Europe/Vienna) and writes the matching UTC instant. The zone id comes from ValuePath, or from Value when no path is configured. The Kind of the source is ignored: its clock fields are the local time. A local time that does not exist (spring-forward gap) fails the node; an ambiguous local time (autumn repeat) resolves to the earlier instant, i.e. the daylight saving time offset. |
| StartOfMonth | 14 | Returns the first day of the month of the source value at 00:00, keeping the Kind of the source. No time zone conversion takes place. |