TimestampOffset.withDateOnlyTimeOnlyAndOffset constructor
- required DateOnly dateOnly,
- required TimeOnly timeOnly,
- required TimeZoneOffset timeZoneOffset,
Creates a new timestamp offset object from the provided date, time, and time zone offset.
Parameters:
dateOnly
— The date only.timeOnly
— The time only.timeZoneOffset
— The offset that indicates how far ahead or behind the local date time is relative to UTC.
Implementation
factory TimestampOffset.withDateOnlyTimeOnlyAndOffset({
required DateOnly dateOnly,
required TimeOnly timeOnly,
required TimeZoneOffset timeZoneOffset,
}) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_TimestampOffset_createWithDateOnlyTimeOnlyAndOffset(
dateOnly._handle,
timeOnly._handle,
timeZoneOffset._handle,
errorHandler,
);
});
final TimestampOffset object = TimestampOffset._withHandle(handle);
object._dateOnly.cache(dateOnly);
object._timeOnly.cache(timeOnly);
object._timeZoneOffset.cache(timeZoneOffset);
return object;
}