Discover Packages
github.com/rudderlabs/rudder-server
utils
timeutil
package
Version:
v1.4.2
Opens a new window with list of versions in this module.
Published: Dec 7, 2022
License: AGPL-3.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func GetElapsedMinsInThisDay(currentTime time .Time ) int
GetElapsedMinsInThisDay() returns no of minutes elapsed in this day for the time provided
MinsOfDay returns minutes since start of day for a timestamp in format `15:30`
eg. MinsOfDay("02:30") -> 150
returns 0 for a timestamp not in format HH:MM
Now returns the current time in UTC.
StartOfDay returns start of the day
Source Files
¶
Click to show internal directories.
Click to hide internal directories.