Documentation
¶
Overview ¶
Package datetime provides custom date and time types with JSON marshaling support.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Date ¶
Date represents a date without time using RFC3339 date format (YYYY-MM-DD).
func (Date) MarshalJSON ¶
MarshalJSON formats the date as a JSON string in YYYY-MM-DD format.
func (*Date) UnmarshalJSON ¶
UnmarshalJSON parses a JSON string in YYYY-MM-DD format.
type Time ¶
Time represents a time of day using RFC3339 time format (HH:MM:SS).
func (Time) MarshalJSON ¶
MarshalJSON formats the time as a JSON string in HH:MM:SS format.
func (*Time) UnmarshalJSON ¶
UnmarshalJSON parses a JSON string in HH:MM:SS format.
Click to show internal directories.
Click to hide internal directories.