dbtime

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package dbtime,A quickly mysql access component.

Copyright 2023 The daog Authors. All rights reserved.

Package dbtime,A quickly mysql access component.

Copyright 2023 The daog Authors. All rights reserved.

Index

Constants

This section is empty.

Variables

View Source
var (
	DateFormat     = "2006-01-02"
	DatetimeFormat = "2006-01-02 15:04:05"
)

Functions

This section is empty.

Types

type NormalDate

type NormalDate time.Time

func (NormalDate) MarshalJSON

func (c NormalDate) MarshalJSON() ([]byte, error)

func (*NormalDate) UnmarshalJSON

func (c *NormalDate) UnmarshalJSON(b []byte) error

func (NormalDate) Value

func (ndt NormalDate) Value() (driver.Value, error)

type NormalDatetime

type NormalDatetime time.Time

func (NormalDatetime) MarshalJSON

func (c NormalDatetime) MarshalJSON() ([]byte, error)

func (*NormalDatetime) UnmarshalJSON

func (c *NormalDatetime) UnmarshalJSON(b []byte) error

func (NormalDatetime) Value

func (ndt NormalDatetime) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL