type time.Time
311 uses
time (current package)
format.go#L545: func (t Time) String() string {
format.go#L576: func (t Time) GoString() string {
format.go#L638: func (t Time) Format(layout string) string {
format.go#L654: func (t Time) AppendFormat(b []byte, layout string) []byte {
format.go#L666: func (t Time) appendFormat(b []byte, layout string) []byte {
format.go#L1019: func Parse(layout, value string) (Time, error) {
format.go#L1034: func ParseInLocation(layout, value string, loc *Location) (Time, error) {
format.go#L1044: func parse(layout, value string, defaultLocation, local *Location) (Time, error) {
format.go#L1072: return Time{}, newParseError(alayout, avalue, prefix, value, "")
format.go#L1076: return Time{}, newParseError(alayout, avalue, "", value, ": extra text: "+quote(value))
format.go#L1324: return Time{}, newParseError(alayout, avalue, stdstr, value, ": "+rangeErrString+" out of range")
format.go#L1327: return Time{}, newParseError(alayout, avalue, stdstr, hold, "")
format.go#L1349: return Time{}, newParseError(alayout, avalue, "", value, ": day-of-year out of range")
format.go#L1361: return Time{}, newParseError(alayout, avalue, "", value, ": day-of-year does not match month")
format.go#L1365: return Time{}, newParseError(alayout, avalue, "", value, ": day-of-year does not match day")
format.go#L1379: return Time{}, newParseError(alayout, avalue, "", value, ": day out of range")
format_rfc3339.go#L18: func (t Time) appendFormatRFC3339(b []byte, nanos bool) []byte {
format_rfc3339.go#L62: func (t Time) appendStrictRFC3339(b []byte) ([]byte, error) {
format_rfc3339.go#L82: func parseRFC3339[bytes []byte | string](s bytes, local *Location) (Time, bool) {
format_rfc3339.go#L105: return Time{}, false
format_rfc3339.go#L114: return Time{}, false
format_rfc3339.go#L132: return Time{}, false
format_rfc3339.go#L137: return Time{}, false
format_rfc3339.go#L155: func parseStrictRFC3339(b []byte) (Time, error) {
format_rfc3339.go#L160: return Time{}, err
format_rfc3339.go#L173: return Time{}, &ParseError{RFC3339, string(b), "15", string(b[len("2006-01-02T"):][:1]), ""}
format_rfc3339.go#L175: return Time{}, &ParseError{RFC3339, string(b), ".", ",", ""}
format_rfc3339.go#L179: return Time{}, &ParseError{RFC3339, string(b), "Z07:00", string(b[len(b)-len("Z07:00"):]), ": timezone hour out of range"}
format_rfc3339.go#L181: return Time{}, &ParseError{RFC3339, string(b), "Z07:00", string(b[len(b)-len("Z07:00"):]), ": timezone minute out of range"}
format_rfc3339.go#L184: return Time{}, &ParseError{RFC3339, string(b), RFC3339, string(b), ""}
sleep.go#L22: func syncTimer(c chan Time) unsafe.Pointer {
sleep.go#L90: C <-chan Time
sleep.go#L144: c := make(chan Time, 1)
sleep.go#L187: case c.(chan Time) <- Now().Add(Duration(-delta)):
sleep.go#L202: func After(d Duration) <-chan Time {
tick.go#L17: C <-chan Time // The channel on which the ticks are delivered.
tick.go#L43: c := make(chan Time, 1)
tick.go#L86: func Tick(d Duration) <-chan Time {
time.go#L139: type Time struct {
time.go#L175: func (t *Time) nsec() int32 {
time.go#L180: func (t *Time) sec() int64 {
time.go#L188: func (t *Time) unixSec() int64 { return t.sec() + internalToUnix }
time.go#L191: func (t *Time) addSec(d int64) {
time.go#L216: func (t *Time) setLoc(loc *Location) {
time.go#L225: func (t *Time) stripMono() {
time.go#L236: func (t *Time) setMono(m int64) {
time.go#L252: func (t *Time) mono() int64 {
time.go#L260: func (t Time) After(u Time) bool {
time.go#L270: func (t Time) Before(u Time) bool {
time.go#L281: func (t Time) Compare(u Time) int {
time.go#L305: func (t Time) Equal(u Time) bool {
time.go#L465: func (t Time) IsZero() bool {
time.go#L471: func (t Time) abs() uint64 {
time.go#L491: func (t Time) locabs() (name string, offset int, abs uint64) {
time.go#L514: func (t Time) Date() (year int, month Month, day int) {
time.go#L520: func (t Time) Year() int {
time.go#L526: func (t Time) Month() Month {
time.go#L532: func (t Time) Day() int {
time.go#L538: func (t Time) Weekday() Weekday {
time.go#L553: func (t Time) ISOWeek() (year, week int) {
time.go#L577: func (t Time) Clock() (hour, min, sec int) {
time.go#L602: func (t Time) Hour() int {
time.go#L607: func (t Time) Minute() int {
time.go#L612: func (t Time) Second() int {
time.go#L618: func (t Time) Nanosecond() int {
time.go#L624: func (t Time) YearDay() int {
time.go#L886: func (t Time) Add(d Duration) Time {
time.go#L914: func (t Time) Sub(u Time) Duration {
time.go#L943: func Since(t Time) Duration {
time.go#L953: func Until(t Time) Duration {
time.go#L978: func (t Time) AddDate(years int, months int, days int) Time {
time.go#L996: func (t Time) date(full bool) (year int, month Month, day int, yday int) {
time.go#L1159: func Now() Time {
time.go#L1167: return Time{uint64(nsec), sec + minWall, Local}
time.go#L1169: return Time{hasMonotonic | uint64(sec)<<nsecShift | uint64(nsec), mono, Local}
time.go#L1172: func unixTime(sec int64, nsec int32) Time {
time.go#L1173: return Time{uint64(nsec), sec + unixToInternal, Local}
time.go#L1177: func (t Time) UTC() Time {
time.go#L1183: func (t Time) Local() Time {
time.go#L1193: func (t Time) In(loc *Location) Time {
time.go#L1202: func (t Time) Location() *Location {
time.go#L1212: func (t Time) Zone() (name string, offset int) {
time.go#L1222: func (t Time) ZoneBounds() (start, end Time) {
time.go#L1241: func (t Time) Unix() int64 {
time.go#L1250: func (t Time) UnixMilli() int64 {
time.go#L1259: func (t Time) UnixMicro() int64 {
time.go#L1269: func (t Time) UnixNano() int64 {
time.go#L1279: func (t Time) MarshalBinary() ([]byte, error) {
time.go#L1327: func (t *Time) UnmarshalBinary(data []byte) error {
time.go#L1359: *t = Time{}
time.go#L1379: func (t Time) GobEncode() ([]byte, error) {
time.go#L1384: func (t *Time) GobDecode(data []byte) error {
time.go#L1392: func (t Time) MarshalJSON() ([]byte, error) {
time.go#L1405: func (t *Time) UnmarshalJSON(data []byte) error {
time.go#L1423: func (t Time) MarshalText() ([]byte, error) {
time.go#L1434: func (t *Time) UnmarshalText(data []byte) error {
time.go#L1445: func Unix(sec int64, nsec int64) Time {
time.go#L1460: func UnixMilli(msec int64) Time {
time.go#L1466: func UnixMicro(usec int64) Time {
time.go#L1471: func (t Time) IsDST() bool {
time.go#L1516: func Date(year int, month Month, day, hour, min, sec, nsec int, loc *Location) Time {
time.go#L1577: func (t Time) Truncate(d Duration) Time {
time.go#L1594: func (t Time) Round(d Duration) Time {
time.go#L1609: func div(t Time, d Duration) (qmod2 int, r Duration) {
compress/gzip
gunzip.go#L55: ModTime time.Time // modification time
context
context.go#L72: Deadline() (deadline time.Time, ok bool)
context.go#L179: func (emptyCtx) Deadline() (deadline time.Time, ok bool) {
context.go#L582: func (withoutCancelCtx) Deadline() (deadline time.Time, ok bool) {
context.go#L611: func WithDeadline(parent Context, d time.Time) (Context, CancelFunc) {
context.go#L618: func WithDeadlineCause(parent Context, d time.Time, cause error) (Context, CancelFunc) {
context.go#L652: deadline time.Time
context.go#L655: func (c *timerCtx) Deadline() (deadline time.Time, ok bool) {
crypto/tls
common.go#L540: Time func() time.Time
common.go#L850: created time.Time
common.go#L1050: func (c *Config) time() time.Time {
conn.go#L145: func (c *Conn) SetDeadline(t time.Time) error {
conn.go#L151: func (c *Conn) SetReadDeadline(t time.Time) error {
conn.go#L158: func (c *Conn) SetWriteDeadline(t time.Time) error {
crypto/x509
parser.go#L170: func parseTime(der *cryptobyte.String) (time.Time, error) {
parser.go#L171: var t time.Time
parser.go#L187: func parseValidity(der cryptobyte.String) (time.Time, time.Time, error) {
parser.go#L190: return time.Time{}, time.Time{}, err
parser.go#L194: return time.Time{}, time.Time{}, err
verify.go#L192: CurrentTime time.Time
x509.go#L198: NotBefore, NotAfter time.Time
x509.go#L703: NotBefore, NotAfter time.Time // Validity bounds.
x509.go#L1746: func (c *Certificate) CreateCRL(rand io.Reader, priv any, revokedCerts []pkix.RevokedCertificate, now, expiry time.Time) (crlBytes []byte, err error) {
x509.go#L2187: RevocationTime time.Time
x509.go#L2257: ThisUpdate time.Time
x509.go#L2261: NextUpdate time.Time
x509.go#L2289: ThisUpdate time.Time
x509.go#L2290: NextUpdate time.Time `asn1:"optional"`
crypto/x509/pkix
pkix.go#L295: func (certList *CertificateList) HasExpired(now time.Time) bool {
pkix.go#L308: ThisUpdate time.Time
pkix.go#L309: NextUpdate time.Time `asn1:"optional"`
pkix.go#L318: RevocationTime time.Time
database/sql/driver
types.go#L185: case []byte, bool, float64, int64, string, time.Time:
embed
embed.go#L220: func (f *file) ModTime() time.Time { return time.Time{} }
encoding/asn1
asn1.go#L342: func parseUTCTime(bytes []byte) (ret time.Time, err error) {
asn1.go#L370: func parseGeneralizedTime(bytes []byte) (ret time.Time, err error) {
asn1.go#L663: timeType = reflect.TypeFor[time.Time]()
asn1.go#L867: case *time.Time:
marshal.go#L363: func outsideUTCRange(t time.Time) bool {
marshal.go#L368: func makeUTCTime(t time.Time) (e encoder, err error) {
marshal.go#L379: func makeGeneralizedTime(t time.Time) (e encoder, err error) {
marshal.go#L390: func appendUTCTime(dst []byte, t time.Time) (ret []byte, err error) {
marshal.go#L405: func appendGeneralizedTime(dst []byte, t time.Time) (ret []byte, err error) {
marshal.go#L416: func appendTimeCommon(dst []byte, t time.Time) []byte {
marshal.go#L463: t := value.Interface().(time.Time)
marshal.go#L653: if params.timeType == TagGeneralizedTime || outsideUTCRange(v.Interface().(time.Time)) {
github.com/coinbase/cdp-sdk/go/auth
jwt.go#L141: func buildECJWT(options JwtOptions, uri string, now time.Time, nonce []byte) (string, error) {
jwt.go#L179: func buildEdwardsJWT(options JwtOptions, uri string, now time.Time, nonce []byte) (string, error) {
github.com/golang-jwt/jwt/v5
parser_option.go#L47: func WithTimeFunc(f func() time.Time) ParserOption {
types.go#L33: time.Time
types.go#L38: func NewNumericDate(t time.Time) *NumericDate {
validator.go#L42: timeFunc func() time.Time
validator.go#L90: now time.Time
validator.go#L167: func (v *Validator) verifyExpiresAt(claims Claims, cmp time.Time, required bool) error {
validator.go#L188: func (v *Validator) verifyIssuedAt(claims Claims, cmp time.Time, required bool) error {
validator.go#L209: func (v *Validator) verifyNotBefore(claims Claims, cmp time.Time, required bool) error {
github.com/oapi-codegen/runtime
bindparam.go#L548: if t.ConvertibleTo(reflect.TypeOf(time.Time{})) {
bindstring.go#L115: if t.ConvertibleTo(reflect.TypeOf(time.Time{})) {
bindstring.go#L132: if t != reflect.TypeOf(time.Time{}) {
bindstring.go#L134: vtPtr := vPtr.Convert(reflect.TypeOf(&time.Time{}))
deepobject.go#L252: if it.ConvertibleTo(reflect.TypeOf(time.Time{})) {
deepobject.go#L253: var tm time.Time
deepobject.go#L266: if it != reflect.TypeOf(time.Time{}) {
deepobject.go#L269: aPtr := ivPtr.Convert(reflect.TypeOf(&time.Time{}))
styleparam.go#L74: convertableToTime := t.ConvertibleTo(reflect.TypeOf(time.Time{}))
styleparam.go#L191: if t.ConvertibleTo(reflect.TypeOf(time.Time{})) {
styleparam.go#L192: tt := v.Convert(reflect.TypeOf(time.Time{}))
styleparam.go#L193: timeVal := tt.Interface().(time.Time)
github.com/oapi-codegen/runtime/types
date.go#L11: time.Time
internal/poll
fd_poll_runtime.go#L132: func (fd *FD) SetDeadline(t time.Time) error {
fd_poll_runtime.go#L137: func (fd *FD) SetReadDeadline(t time.Time) error {
fd_poll_runtime.go#L142: func (fd *FD) SetWriteDeadline(t time.Time) error {
fd_poll_runtime.go#L146: func setDeadlineImpl(fd *FD, t time.Time, mode int) error {
io/fs
fs.go#L161: ModTime() time.Time // modification time
log
log.go#L114: func formatHeader(buf *[]byte, t time.Time, prefix string, flag int, file string, line int) {
net
dial.go#L97: Deadline time.Time
dial.go#L183: func minNonzeroTime(a, b time.Time) time.Time {
dial.go#L199: func (d *Dialer) deadline(ctx context.Context, now time.Time) (earliest time.Time) {
dial.go#L218: func partialDeadline(now, deadline time.Time, addrsRemaining int) (time.Time, error) {
dial.go#L224: return time.Time{}, errTimeout
dnsclient_unix.go#L360: lastChecked time.Time // last time resolv.conf was checked
dnsclient_unix.go#L414: var mtime time.Time
dnsconfig.go#L41: mtime time.Time // time of resolv.conf modification
fd_posix.go#L137: func (fd *netFD) SetDeadline(t time.Time) error {
fd_posix.go#L141: func (fd *netFD) SetReadDeadline(t time.Time) error {
fd_posix.go#L145: func (fd *netFD) SetWriteDeadline(t time.Time) error {
hosts.go#L46: expire time.Time
hosts.go#L48: mtime time.Time
interface.go#L194: lastFetched time.Time // last time routing information was fetched
net.go#L161: SetDeadline(t time.Time) error
net.go#L166: SetReadDeadline(t time.Time) error
net.go#L173: SetWriteDeadline(t time.Time) error
net.go#L241: func (c *conn) SetDeadline(t time.Time) error {
net.go#L252: func (c *conn) SetReadDeadline(t time.Time) error {
net.go#L263: func (c *conn) SetWriteDeadline(t time.Time) error {
net.go#L361: SetDeadline(t time.Time) error
net.go#L366: SetReadDeadline(t time.Time) error
net.go#L373: SetWriteDeadline(t time.Time) error
net.go#L521: noDeadline = time.Time{}
nss.go#L27: lastChecked time.Time // last time nsswitch.conf was checked
nss.go#L64: var mtime time.Time
nss.go#L97: mtime time.Time // time of nsswitch.conf modification
parse.go#L67: func (f *file) stat() (mtime time.Time, size int64, err error) {
parse.go#L70: return time.Time{}, 0, err
parse.go#L83: func stat(name string) (mtime time.Time, size int64, err error) {
parse.go#L86: return time.Time{}, 0, err
pipe.go#L31: func (d *pipeDeadline) set(t time.Time) {
pipe.go#L210: func (p *pipe) SetDeadline(t time.Time) error {
pipe.go#L219: func (p *pipe) SetReadDeadline(t time.Time) error {
pipe.go#L227: func (p *pipe) SetWriteDeadline(t time.Time) error {
tcpsock.go#L398: func (l *TCPListener) SetDeadline(t time.Time) error {
unixsock.go#L286: func (l *UnixListener) SetDeadline(t time.Time) error {
net/http
client.go#L174: func (c *Client) send(req *Request, deadline time.Time) (resp *Response, didTimeout func() bool, err error) {
client.go#L192: func (c *Client) deadline() time.Time {
client.go#L196: return time.Time{}
client.go#L211: func send(ireq *Request, rt RoundTripper, deadline time.Time) (resp *Response, didTimeout func() bool, err error) {
client.go#L307: func timeBeforeContextDeadline(t time.Time, ctx context.Context) bool {
client.go#L351: func setRequestCancel(req *Request, rt RoundTripper, deadline time.Time) (stopTimer func(), didTimeout func() bool) {
cookie.go#L30: Expires time.Time // optional
cookie.go#L180: c.Expires = time.Time{}
cookie.go#L380: func validCookieExpires(t time.Time) bool {
fs.go#L240: func ServeContent(w ResponseWriter, req *Request, name string, modtime time.Time, content io.ReadSeeker) {
fs.go#L269: func serveContent(w ResponseWriter, r *Request, name string, modtime time.Time, sizeFunc func() (int64, error), content io.ReadSeeker) {
fs.go#L508: func checkIfUnmodifiedSince(r *Request, modtime time.Time) condResult {
fs.go#L557: func checkIfModifiedSince(r *Request, modtime time.Time) condResult {
fs.go#L578: func checkIfRange(w ResponseWriter, r *Request, modtime time.Time) condResult {
fs.go#L612: func isZeroTime(t time.Time) bool {
fs.go#L616: func setLastModified(w ResponseWriter, modtime time.Time) {
fs.go#L640: func checkPreconditions(w ResponseWriter, r *Request, modtime time.Time) (done bool, rangeHeader string) {
h2_bundle.go#L3705: Now() time.Time
h2_bundle.go#L3999: func (s *http2Server) now() time.Time {
h2_bundle.go#L4309: sc.conn.SetWriteDeadline(time.Time{})
h2_bundle.go#L5901: sc.conn.SetReadDeadline(time.Time{})
h2_bundle.go#L5922: sc.conn.SetReadDeadline(time.Time{})
h2_bundle.go#L6641: func (w *http2responseWriter) SetReadDeadline(deadline time.Time) error {
h2_bundle.go#L6667: func (w *http2responseWriter) SetWriteDeadline(deadline time.Time) error {
h2_bundle.go#L7165: C() <-chan time.Time
h2_bundle.go#L7175: func (t http2timeTimer) C() <-chan time.Time { return t.Timer.C }
h2_bundle.go#L7506: lastActive time.Time
h2_bundle.go#L7507: lastIdle time.Time // time last idle
h2_bundle.go#L7658: sew.conn.SetWriteDeadline(time.Time{})
h2_bundle.go#L8122: LastIdle time.Time
h2_bundle.go#L8661: var respHeaderTimer <-chan time.Time
h2_bundle.go#L8816: cc.lastIdle = time.Time{}
header.go#L129: func ParseTime(text string) (t time.Time, err error) {
responsecontroller.go#L85: func (c *ResponseController) SetReadDeadline(deadline time.Time) error {
responsecontroller.go#L89: case interface{ SetReadDeadline(time.Time) error }:
responsecontroller.go#L105: func (c *ResponseController) SetWriteDeadline(deadline time.Time) error {
responsecontroller.go#L109: case interface{ SetWriteDeadline(time.Time) error }:
server.go#L325: rwc.SetDeadline(time.Time{})
server.go#L496: func (c *response) SetReadDeadline(deadline time.Time) error {
server.go#L500: func (c *response) SetWriteDeadline(deadline time.Time) error {
server.go#L685: cr.conn.rwc.SetReadDeadline(time.Time{})
server.go#L740: cr.conn.rwc.SetReadDeadline(time.Time{})
server.go#L995: func appendTime(b []byte, t time.Time) []byte {
server.go#L1025: wholeReqDeadline time.Time // or zero if none
server.go#L1026: hdrDeadline time.Time // or zero if none
server.go#L1988: c.rwc.SetReadDeadline(time.Time{})
server.go#L1989: c.rwc.SetWriteDeadline(time.Time{})
server.go#L2099: c.rwc.SetWriteDeadline(time.Time{})
server.go#L2120: c.rwc.SetReadDeadline(time.Time{})
server.go#L2131: c.rwc.SetReadDeadline(time.Time{})
socks_bundle.go#L23: socksnoDeadline = time.Time{}
transport.go#L1031: if w.tryDeliver(pconn, nil, time.Time{}) {
transport.go#L1043: w.tryDeliver(pconn, nil, time.Time{})
transport.go#L1116: var oldTime time.Time
transport.go#L1268: idleAt time.Time
transport.go#L1288: func (w *wantConn) tryDeliver(pc *persistConn, err error, idleAt time.Time) bool {
transport.go#L1564: delivered := w.tryDeliver(pc, err, time.Time{})
transport.go#L2023: idleAt time.Time // time it last become idle
transport.go#L2750: var respHeaderTimer <-chan time.Time
os
file.go#L643: func (f *File) SetDeadline(t time.Time) error {
file.go#L651: func (f *File) SetReadDeadline(t time.Time) error {
file.go#L661: func (f *File) SetWriteDeadline(t time.Time) error {
file_posix.go#L179: func Chtimes(name string, atime time.Time, mtime time.Time) error {
file_posix.go#L181: set := func(i int, t time.Time) {
file_posix.go#L210: func (f *File) setDeadline(t time.Time) error {
file_posix.go#L218: func (f *File) setReadDeadline(t time.Time) error {
file_posix.go#L226: func (f *File) setWriteDeadline(t time.Time) error {
stat_linux.go#L46: func atime(fi FileInfo) time.Time {
types_unix.go#L19: modTime time.Time
types_unix.go#L25: func (fs *fileStat) ModTime() time.Time { return fs.modTime }
vendor/golang.org/x/crypto/cryptobyte
asn1.go#L110: func (b *Builder) AddASN1GeneralizedTime(t time.Time) {
asn1.go#L121: func (b *Builder) AddASN1UTCTime(t time.Time) {
asn1.go#L492: func (s *String) ReadASN1GeneralizedTime(out *time.Time) bool {
asn1.go#L513: func (s *String) ReadASN1UTCTime(out *time.Time) bool {
 |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |