to Day Number
fun Instant.toDayNumber(dayCutoffHour: Int = 4, timeZone: TimeZone = TimeZone.currentSystemDefault()): Long
Converts an Instant to a day number, considering a specified day cutoff hour.
Return
The day number corresponding to the Instant.
Parameters
day Cutoff Hour
The hour at which the day is considered to start (default is 4 AM).
time Zone
The time zone to use for the conversion (default is the system's current time zone).