Package date implements encoding of 7 byte Oracle DATE storage formats.
Internal call graph ▹
Internal call graph ▾
In the call graph viewer below, each node is a function belonging to this package and its children are the functions it calls—perhaps dynamically.
The root nodes are the entry points of the package: functions that may be called from outside the package. There may be non-exported or anonymous functions among them if they are called dynamically from another package.
Click a node to visit that function's source code.
From there you can visit its callers by
clicking its declaring
Functions may be omitted if they were determined to be unreachable in the particular programs or tests that were analyzed.
Date is an OCIDate
SQLT_ODT: 7 bytes
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.
type Date byte
func FromTime(t time.Time) Date
FromTime returns a Date from a time.Time Does the allocation inside, so easier to use.
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 (Date) MarshalJSON ¶
func (dt Date) MarshalJSON() (byte, error)
func (dt *Date) Set(t time.Time)
func (dt Date) String() string
func (*Date) UnmarshalJSON ¶
func (dt *Date) UnmarshalJSON(p byte) error