package
0.6.2
Repository: https://github.com/phamtai97/go-utils.git
Documentation: pkg.go.dev

# Functions

ConvertCurrentLocalTimeToString converts the current local time to string with the specific format.
ConvertLocalTimeToMilliseconds converts the local time to milliseconds.
ConvertLocalTimeToString converts the local time to string with specific format.
ConvertMillisecondsToLocalTime converts the milliseconds to local time.
ConvertMillisecondsToString converts the milliseconds to the string with the specific format.
ConvertStringToLocalTime converts the string with specific format to the local time.
ConvertStringToMilliseconds converts the string with specific format to milliseconds.
GetAfterLocalTimeOfTime returns after local time with the number of days compared to specific local time.
GetBeforeLocalTimeOfTime returns before local time with the number of days compared to specific local time.
GetCurrentLocalTime returns the current local time.
GetCurrentMiliseconds returns the current milliseconds.
GetDayOfMonth returns the day of month.
GetDayOfYear returns the day of the year.
GetEndLocalTimeOfDay return the end local time of day.
GetEndLocalTimeOfMonth returns the end local time of month.
GetEndLocalTimeOfTime return the end local time of specific local time.
GetEndLocalTimeOfYear returns the end local time of year.
GetMillisecondsBetween returns the number of milliseconds between 2 local time.
GetMonthOfYear returns the month of year.
GetStartLocalTimeOfDay return the start local time of day.
GetStartLocalTimeOfMonth returns the start local time of month.
GetStartLocalTimeOfTime return the start local time of specific local time.
GetStartLocalTimeOfYear returns the start local time of year.
GetYear returns the current year.

# Constants

DD_MM_YYYY is the format "02-01-2006".
DD_MM_YYYY_HH_MM_SS is the format "02-01-2006 15:04:05".
DD_MM_YYYY_HH_MM_SS_SSS is the format "02-01-2006 15:04:05.000".
YYYY_MM_DD is the format "2006-01-02".
YYYY_MM_DD_HH_MM_SS is the format "2006-01-02 15:04:05".
YYYY_MM_DD_HH_MM_SS_SSS is the format "2006-01-02 15:04:05.000".