Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NPT ¶
type NPT struct {
// contains filtered or unexported fields
}
NPT is a time-holding object that does not have timezone pointer. It's more memory-effective than default Go time.Time and can be used in apps that store time in memory only and do not serialize it.
For example: logger package that works with huge amount of events or action buffer that doesn't need extra precision.
Important: NPT does not provide exact precision up to nano. Max precision is up to a second.
Click to show internal directories.
Click to hide internal directories.