Time

Overview

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island, macOS
  • Namespace: go.time

Implements

Instance Methods


constructor

 

constructor

 

Time()

 

init()

constructor (uint64, int64, Reference<Location>)

 

constructor(awall: uint64; aext: int64; aloc: Reference<Location>)

 

Time(uint64 awall, int64 aext, Reference<Location> aloc)

 

init(_ awall: uint64, _ aext: int64, _ aloc: Reference<Location>)

Parameters:

  • awall:
  • aext:
  • aloc:

constructor (Time)

 

constructor(value: Time)

 

Time(Time value)

 

init(_ value: Time)

Parameters:

  • value:

Add

 

method Add(d: Duration): Time

 

Time Add(Duration d)

 

func Add(_ d: Duration) -> Time

 

func Add(d Duration) Time

Parameters:

  • d:

AddDate

 

method AddDate(years: int; months: int; days: int): Time

 

Time AddDate(int years, int months, int days)

 

func AddDate(_ years: int, _ months: int, _ days: int) -> Time

 

func AddDate(years int, months int, days int) Time

Parameters:

  • years:
  • months:
  • days:

After

 

method After(u: Time): bool

 

bool After(Time u)

 

func After(_ u: Time) -> bool

 

func After(u Time) bool

Parameters:

  • u:

AppendFormat

 

method AppendFormat(b: Slice<Byte>; layout: string): Slice<Byte>

 

Slice<Byte> AppendFormat(Slice<Byte> b, string layout)

 

func AppendFormat(_ b: Slice<Byte>, _ layout: string) -> Slice<Byte>

 

func AppendFormat(b Slice<Byte>, layout string) Slice<Byte>

Parameters:

  • b:
  • layout:

Before

 

method Before(u: Time): bool

 

bool Before(Time u)

 

func Before(_ u: Time) -> bool

 

func Before(u Time) bool

Parameters:

  • u:

Clock

 

method Clock: tuple of (hour: Int64, min: Int64, sec: Int64)

 

(Int64 hour, Int64 min, Int64 sec) Clock()

 

func Clock() -> (hour:Int64, min:Int64, sec:Int64)

 

func Clock() (hour Int64, min Int64, sec Int64)

Date

 

method Date: tuple of (year: Int64, month: Month, day: Int64)

 

(Int64 year, Month month, Int64 day) Date()

 

func Date() -> (year:Int64, month:Month, day:Int64)

 

func Date() (year Int64, month Month, day Int64)

Day

 

method Day: int

 

int Day()

 

func Day() -> int

 

func Day() int

Equal

 

method Equal(u: Time): bool

 

bool Equal(Time u)

 

func Equal(_ u: Time) -> bool

 

func Equal(u Time) bool

Parameters:

  • u:

Format

 

method Format(layout: string): string

 

string Format(string layout)

 

func Format(_ layout: string) -> string

 

func Format(layout string) string

Parameters:

  • layout:

GobEncode

 

// .NET, Island, macOS
method GobEncode: tuple of (Slice<Byte>, error)
// .NET Standard 2.0
method GobEncode: ValueTuple<Slice<Byte>, error>

 

// .NET, Island, macOS
(Slice<Byte>, error) GobEncode()
// .NET Standard 2.0
ValueTuple<Slice<Byte>, error> GobEncode()

 

// .NET, Island, macOS
func GobEncode() -> (Slice<Byte>, error)
// .NET Standard 2.0
func GobEncode() -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island, macOS
func GobEncode() (Slice<Byte>, error)
// .NET Standard 2.0
func GobEncode() ValueTuple<Slice<Byte>, error>

Hour

 

method Hour: int

 

int Hour()

 

func Hour() -> int

 

func Hour() int

In

 

method In(loc: Reference<Location>): Time

 

Time In(Reference<Location> loc)

 

func In(_ loc: Reference<Location>) -> Time

 

func In(loc Reference<Location>) Time

Parameters:

  • loc:

ISOWeek

 

method ISOWeek: tuple of (year: Int64, week: Int64)

 

(Int64 year, Int64 week) ISOWeek()

 

func ISOWeek() -> (year:Int64, week:Int64)

 

func ISOWeek() (year Int64, week Int64)

IsZero

 

method IsZero: bool

 

bool IsZero()

 

func IsZero() -> bool

 

func IsZero() bool

Local

 

method Local: Time

 

Time Local()

 

func Local() -> Time

 

func Local() Time

Location

 

method Location: Reference<Location>

 

Reference<Location> Location()

 

func Location() -> Reference<Location>

 

func Location() Reference<Location>

MarshalBinary

 

// .NET, Island, macOS
method MarshalBinary: tuple of (Slice<Byte>, error)
// .NET Standard 2.0
method MarshalBinary: ValueTuple<Slice<Byte>, error>

 

// .NET, Island, macOS
(Slice<Byte>, error) MarshalBinary()
// .NET Standard 2.0
ValueTuple<Slice<Byte>, error> MarshalBinary()

 

// .NET, Island, macOS
func MarshalBinary() -> (Slice<Byte>, error)
// .NET Standard 2.0
func MarshalBinary() -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island, macOS
func MarshalBinary() (Slice<Byte>, error)
// .NET Standard 2.0
func MarshalBinary() ValueTuple<Slice<Byte>, error>

MarshalJSON

 

// .NET, Island, macOS
method MarshalJSON: tuple of (Slice<Byte>, error)
// .NET Standard 2.0
method MarshalJSON: ValueTuple<Slice<Byte>, error>

 

// .NET, Island, macOS
(Slice<Byte>, error) MarshalJSON()
// .NET Standard 2.0
ValueTuple<Slice<Byte>, error> MarshalJSON()

 

// .NET, Island, macOS
func MarshalJSON() -> (Slice<Byte>, error)
// .NET Standard 2.0
func MarshalJSON() -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island, macOS
func MarshalJSON() (Slice<Byte>, error)
// .NET Standard 2.0
func MarshalJSON() ValueTuple<Slice<Byte>, error>

MarshalText

 

// .NET, Island, macOS
method MarshalText: tuple of (Slice<Byte>, error)
// .NET Standard 2.0
method MarshalText: ValueTuple<Slice<Byte>, error>

 

// .NET, Island, macOS
(Slice<Byte>, error) MarshalText()
// .NET Standard 2.0
ValueTuple<Slice<Byte>, error> MarshalText()

 

// .NET, Island, macOS
func MarshalText() -> (Slice<Byte>, error)
// .NET Standard 2.0
func MarshalText() -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island, macOS
func MarshalText() (Slice<Byte>, error)
// .NET Standard 2.0
func MarshalText() ValueTuple<Slice<Byte>, error>

Minute

 

method Minute: int

 

int Minute()

 

func Minute() -> int

 

func Minute() int

Month

 

method Month: Month

 

Month Month()

 

func Month() -> Month

 

func Month() Month

Nanosecond

 

method Nanosecond: int

 

int Nanosecond()

 

func Nanosecond() -> int

 

func Nanosecond() int

Round

 

method Round(d: Duration): Time

 

Time Round(Duration d)

 

func Round(_ d: Duration) -> Time

 

func Round(d Duration) Time

Parameters:

  • d:

Second

 

method Second: int

 

int Second()

 

func Second() -> int

 

func Second() int

String

 

method String: string

 

string String()

 

func String() -> string

 

func String() string

Sub

 

method Sub(u: Time): Duration

 

Duration Sub(Time u)

 

func Sub(_ u: Time) -> Duration

 

func Sub(u Time) Duration

Parameters:

  • u:

Truncate

 

method Truncate(d: Duration): Time

 

Time Truncate(Duration d)

 

func Truncate(_ d: Duration) -> Time

 

func Truncate(d Duration) Time

Parameters:

  • d:

Unix

 

method Unix: int64

 

int64 Unix()

 

func Unix() -> int64

 

func Unix() int64

UnixNano

 

method UnixNano: int64

 

int64 UnixNano()

 

func UnixNano() -> int64

 

func UnixNano() int64

UTC

 

method UTC: Time

 

Time UTC()

 

func UTC() -> Time

 

func UTC() Time

Weekday

 

method Weekday: Weekday

 

Weekday Weekday()

 

func Weekday() -> Weekday

 

func Weekday() Weekday

Year

 

method Year: int

 

int Year()

 

func Year() -> int

 

func Year() int

YearDay

 

method YearDay: int

 

int YearDay()

 

func YearDay() -> int

 

func YearDay() int

Zone

 

method Zone: tuple of (name: string, offset: Int64)

 

(string name, Int64 offset) Zone()

 

func Zone() -> (name:string, offset:Int64)

 

func Zone() (name string, offset Int64)

GobDecode

 

method GobDecode(data: Slice<Byte>): error

 

error GobDecode(Slice<Byte> data)

 

func GobDecode(_ data: Slice<Byte>) -> error

 

func GobDecode(data Slice<Byte>) error

Parameters:

  • data:

UnmarshalBinary

 

method UnmarshalBinary(data: Slice<Byte>): error

 

error UnmarshalBinary(Slice<Byte> data)

 

func UnmarshalBinary(_ data: Slice<Byte>) -> error

 

func UnmarshalBinary(data Slice<Byte>) error

Parameters:

  • data:

UnmarshalJSON

 

method UnmarshalJSON(data: Slice<Byte>): error

 

error UnmarshalJSON(Slice<Byte> data)

 

func UnmarshalJSON(_ data: Slice<Byte>) -> error

 

func UnmarshalJSON(data Slice<Byte>) error

Parameters:

  • data:

UnmarshalText

 

method UnmarshalText(data: Slice<Byte>): error

 

error UnmarshalText(Slice<Byte> data)

 

func UnmarshalText(_ data: Slice<Byte>) -> error

 

func UnmarshalText(data Slice<Byte>) error

Parameters:

  • data: