Documentation ¶
Index ¶
- func TimeToUnixTimestamp(t time.Time) int64
- func TimestampToTime(timestamp string) time.Time
- func UnixMilliTimestamp() int64
- func UnixNanoTimestamp() int64
- func UnixNanoToTime(unixNanoTimestamp int64) time.Time
- func UnixTimeToTime(unixTimestamp int64) time.Time
- func UnixTimestamp() int64
- func UserSessionIdValue(userId uint64, timestamp time.Time) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TimeToUnixTimestamp ¶
TimeToUnixTimestamp converts a time.Time object to a Unix timestamp.
func TimestampToTime ¶
func UnixMilliTimestamp ¶
func UnixMilliTimestamp() int64
UnixMilliTimestamp returns the current Unix timestamp in milliseconds.
func UnixNanoTimestamp ¶
func UnixNanoTimestamp() int64
UnixNanoTimestamp returns the current Unix timestamp in nanoseconds.
func UnixNanoToTime ¶
UnixNanoToTime converts a Unix timestamp in nanoseconds to a time.Time object.
func UnixTimeToTime ¶
UnixTimeToTime converts a Unix timestamp to a time.Time object.
func UnixTimestamp ¶
func UnixTimestamp() int64
UnixTimestamp returns the current Unix timestamp in seconds.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.