Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UseMicroSeconds ¶
func UseMicroSeconds(use bool)
UseMicroSeconds sets whether this application (or set of) should use microseconds while dumping date/times or not.
Types ¶
type DateTime ¶
DateTime works like time but has a custom formatting.
func (*DateTime) MarshalBSONValue ¶
MarshalBSONValue forwards its logic to the given base implementation for primitive.DateTime.
func (DateTime) MarshalJSON ¶
MarshalJSON does a JSON marshalling.
func (*DateTime) UnmarshalBSONValue ¶
UnmarshalBSONValue is implemented through access to the string value (if string) or the BSON DateTime value (if date-time in database). This serves well for the purpose both for conversions and for simulated updates.
func (*DateTime) UnmarshalJSON ¶
UnmarshalJSON does a JSON de-marshalling through all the available date/time formats until one matches.
Click to show internal directories.
Click to hide internal directories.