Movatterモバイル変換


[0]ホーム

URL:


timeutil

package
v0.1.0Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License:Apache-2.0Imports:1Imported by:2

Details

Repository

github.com/no-src/nsgo

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeTime

type Timeint64

Time a custom time to change the behavior of marshal

funcNewTime

func NewTime(ttime.Time)Time

NewTime create a Time instance with the time.Time

funcNow

func Now()Time

Now returns the current local time

func (Time)MarshalText

func (tTime) MarshalText() (text []byte, errerror)

MarshalText implement interface encoding.TextMarshaler

func (Time)String

func (tTime) String()string

String returns the default formatted time string

func (Time)Sub

func (tTime) Sub(uTime)time.Duration

Sub returns the duration t-u

func (Time)Time

func (tTime) Time()time.Time

Time convert to time.Time

func (Time)Unix

func (tTime) Unix()int64

Unix returns the unix time, the number of seconds elapsed since January 1, 1970 UTC

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp