Date
This page contains information about the template functions related to date/time:
Now(): time.Time
→ Returns the current datetime;Parse( value: string, format: string ): time.Time
→ Parse the value as a date, using the given format;Year( date: time.Time ): uint
→ Returns the year component of the given date;MonthString( date: time.Time ): string
→ Returns the month component of the given date as a string;Month( date: time.Time ): uint
→ Returns the month component of the given date, as a 1 based integer;WeekdayString( date: time.Time ): string
→ Returns the weekday component of the given date as a string;Weekday( date: time.Time ): uint
→ Returns the weekday component of the given date, as a 1 based integer;Day( date: time.Time ): uint
→ Returns the day component of the given date;Hour( date: time.Time ): uint
→ Returns the hour component of the given date;Minute( date: time.Time ): uint
→ Returns the minute component of the given date;Second( date: time.Time ): uint
→ Returns the second component of the given date;Zone( date: time.Time ): string
→ Returns the zone component of the given date, as a string;ZoneOffset( date: time.Time ): uint
→ Returns the zone component of the given date, as a offset;Format( date: time.Time, format: string ): string
→ Format the given date, using the given format;After( dateA: time.Time, dateB: time.Time ): bool
→ Returns if dateB is after dateA;Equal( dateA: time.Time, dateB: time.Time ): bool
→ Returns if dateB is equal to dateA;Before( dateA: time.Time, dateB: time.Time ): bool
→ Returns if dateB is before dateA.