minuteOfDay

minuteOfDay returns the minutes since the top of the day (midnight) in the specified time zone.

Syntax

Parameters

ParameterTypeDescription
instantInstant

The date-time from which to return the number of minutes.

timeZoneZoneId

The time zone.

dateTimeZonedDateTime

The date-time from which to return the number of minutes.

asLocalTimeboolean

Set this parameter to false if you need Deephaven to account for daylight savings time.

  • If false, returns the number of minutes from the start of the day. However, on days when daylight savings time events occur, results may be different from what is expected based on the local time. For example, on DST change days, 9:30 AM may be earlier or later in the day based on whether the daylight savings time adjustment is forward or backward.
  • If true, returns the number of minutes from the start of the day according to the local time. In this case, 9:30 will always return the same value.

On non-DST days, the result is the same regardless of the value of asLocalTime.

localDateTimeLocalDateTime

The local date-time from which to return the number of minutes.

localTimeLocalTime

The local time from which to return the number of minutes.

Returns

Returns an int value of minutes since midnight for a specified date-time.

Examples