Documentation ¶
Overview ¶
Package date implements encoding of 7 byte Oracle DATE storage formats.
Index ¶
- type Date
- func (dt Date) Bytes() []byte
- func (dt Date) Equal(other Date) bool
- func (dt Date) Get() time.Time
- func (dt Date) GetIn(zone *time.Location) time.Time
- func (dt Date) IsNull() bool
- func (dt Date) MarshalJSON() ([]byte, error)
- func (dt *Date) Set(t time.Time)
- func (dt Date) String() string
- func (dt *Date) UnmarshalJSON(p []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Date ¶
type Date [7]byte
Date is an OCIDate
SQLT_ODT: 7 bytes
http://www.orafaq.com/wiki/Date
The internal format is the following one:
century + 100 year in the century + 100 month day hour + 1 minute + 1 second + 1
So in the previous example the date was 19-DEC-2007 at 22:35:10.
func FromTime ¶
FromTime returns a Date from a time.Time Does the allocation inside, so easier to use.
func (Date) MarshalJSON ¶
func (*Date) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.