Time

Overview

Location

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


Instance Methods


constructor

 

constructor

 

Time()

 

init()

 

Sub New()

constructor (uint64, int64, Memory<Location>)

 

// .NET, .NET Standard 2.0
constructor(awall: uint64; aext: int64; aloc: Memory<Location>)
// Island
constructor(awall: uint64; aext: int64; aloc: Memory<Location>)

 

// .NET, .NET Standard 2.0
Time(uint64 awall, int64 aext, Memory<Location> aloc)
// Island
Time(uint64 awall, int64 aext, Memory<Location> aloc)

 

// .NET, .NET Standard 2.0
init(_ awall: uint64, _ aext: int64, _ aloc: Memory<Location>)
// Island
init(_ awall: uint64, _ aext: int64, _ aloc: Memory<Location>)

 

// .NET, .NET Standard 2.0
Sub New(awall As uint64, aext As int64, aloc As Memory<Location>)
// Island
Sub New(awall As uint64, aext As int64, aloc As Memory<Location>)

Parameters:

  • awall:
  • aext:
  • aloc:

constructor (Time)

 

constructor(value: Time)

 

Time(Time value)

 

init(_ value: Time)

 

Sub New(value As Time)

Parameters:

  • value:

Add

 

method Add(d: Duration): Time

 

Time Add(Duration d)

 

func Add(_ d: Duration) -> Time

 

func Add(d Duration) Time

 

Function Add(d As Duration) As 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

 

Function AddDate(years As int, months As int, days As int) As 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

 

Function After(u As Time) As 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>

 

Function AppendFormat(b As Slice<Byte>, layout As string) As 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

 

Function Before(u As Time) As bool

Parameters:

  • u:

Clock

 

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

 

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

 

func Clock() -> (Int64, Int64, Int64)

 

func Clock() tuple of (|name=hour| Int64, |name=min| Int64, |name=sec| Int64)

 

Function Clock() As Tuple (Of Int64, Int64, Int64)

Date

 

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

 

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

 

func Date() -> (Int64, Month, Int64)

 

func Date() tuple of (|name=year| Int64, |name=month| Month, |name=day| Int64)

 

Function Date() As Tuple (Of Int64, Month, Int64)

Day

 

method Day: int

 

int Day()

 

func Day() -> int

 

func Day() int

 

Function Day() As int

Equal

 

method Equal(u: Time): bool

 

bool Equal(Time u)

 

func Equal(_ u: Time) -> bool

 

func Equal(u Time) bool

 

Function Equal(u As Time) As bool

Parameters:

  • u:

Format

 

method Format(layout: string): string

 

string Format(string layout)

 

func Format(_ layout: string) -> string

 

func Format(layout string) string

 

Function Format(layout As string) As string

Parameters:

  • layout:

GobEncode

 

method GobEncode: tuple of (Slice<Byte>, error)

 

(Slice<Byte>, error) GobEncode()

 

func GobEncode() -> (Slice<Byte>, error)

 

func GobEncode() tuple of (Slice<Byte>, error)

 

Function GobEncode() As Tuple (Of Slice<Byte>, error)

Hour

 

method Hour: int

 

int Hour()

 

func Hour() -> int

 

func Hour() int

 

Function Hour() As int

In

 

// .NET, .NET Standard 2.0
method In(loc: Memory<Location>): Time
// Island
method In(loc: Memory<Location>): Time

 

// .NET, .NET Standard 2.0
Time In(Memory<Location> loc)
// Island
Time In(Memory<Location> loc)

 

// .NET, .NET Standard 2.0
func In(_ loc: Memory<Location>) -> Time
// Island
func In(_ loc: Memory<Location>) -> Time

 

// .NET, .NET Standard 2.0
func In(loc Memory<Location>) Time
// Island
func In(loc Memory<Location>) Time

 

// .NET, .NET Standard 2.0
Function In(loc As Memory<Location>) As Time
// Island
Function In(loc As Memory<Location>) As Time

Parameters:

  • loc:

ISOWeek

 

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

 

(Int64 year, Int64 week) ISOWeek()

 

func ISOWeek() -> (Int64, Int64)

 

func ISOWeek() tuple of (|name=year| Int64, |name=week| Int64)

 

Function ISOWeek() As Tuple (Of Int64, Int64)

IsZero

 

method IsZero: bool

 

bool IsZero()

 

func IsZero() -> bool

 

func IsZero() bool

 

Function IsZero() As bool

Local

 

method Local: Time

 

Time Local()

 

func Local() -> Time

 

func Local() Time

 

Function Local() As Time

Location

 

// .NET, .NET Standard 2.0
method Location: Memory<Location>
// Island
method Location: Memory<Location>

 

// .NET, .NET Standard 2.0
Memory<Location> Location()
// Island
Memory<Location> Location()

 

// .NET, .NET Standard 2.0
func Location() -> Memory<Location>
// Island
func Location() -> Memory<Location>

 

// .NET, .NET Standard 2.0
func Location() Memory<Location>
// Island
func Location() Memory<Location>

 

// .NET, .NET Standard 2.0
Function Location() As Memory<Location>
// Island
Function Location() As Memory<Location>

MarshalBinary

 

method MarshalBinary: tuple of (Slice<Byte>, error)

 

(Slice<Byte>, error) MarshalBinary()

 

func MarshalBinary() -> (Slice<Byte>, error)

 

func MarshalBinary() tuple of (Slice<Byte>, error)

 

Function MarshalBinary() As Tuple (Of Slice<Byte>, error)

MarshalJSON

 

method MarshalJSON: tuple of (Slice<Byte>, error)

 

(Slice<Byte>, error) MarshalJSON()

 

func MarshalJSON() -> (Slice<Byte>, error)

 

func MarshalJSON() tuple of (Slice<Byte>, error)

 

Function MarshalJSON() As Tuple (Of Slice<Byte>, error)

MarshalText

 

method MarshalText: tuple of (Slice<Byte>, error)

 

(Slice<Byte>, error) MarshalText()

 

func MarshalText() -> (Slice<Byte>, error)

 

func MarshalText() tuple of (Slice<Byte>, error)

 

Function MarshalText() As Tuple (Of Slice<Byte>, error)

Minute

 

method Minute: int

 

int Minute()

 

func Minute() -> int

 

func Minute() int

 

Function Minute() As int

Month

 

method Month: Month

 

Month Month()

 

func Month() -> Month

 

func Month() Month

 

Function Month() As Month

Nanosecond

 

method Nanosecond: int

 

int Nanosecond()

 

func Nanosecond() -> int

 

func Nanosecond() int

 

Function Nanosecond() As int

Round

 

method Round(d: Duration): Time

 

Time Round(Duration d)

 

func Round(_ d: Duration) -> Time

 

func Round(d Duration) Time

 

Function Round(d As Duration) As Time

Parameters:

  • d:

Second

 

method Second: int

 

int Second()

 

func Second() -> int

 

func Second() int

 

Function Second() As int

String

 

method String: string

 

string String()

 

func String() -> string

 

func String() string

 

Function String() As string

Sub

 

method Sub(u: Time): Duration

 

Duration Sub(Time u)

 

func Sub(_ u: Time) -> Duration

 

func Sub(u Time) Duration

 

Function Sub(u As Time) As Duration

Parameters:

  • u:

Truncate

 

method Truncate(d: Duration): Time

 

Time Truncate(Duration d)

 

func Truncate(_ d: Duration) -> Time

 

func Truncate(d Duration) Time

 

Function Truncate(d As Duration) As Time

Parameters:

  • d:

Unix

 

method Unix: int64

 

int64 Unix()

 

func Unix() -> int64

 

func Unix() int64

 

Function Unix() As int64

UnixNano

 

method UnixNano: int64

 

int64 UnixNano()

 

func UnixNano() -> int64

 

func UnixNano() int64

 

Function UnixNano() As int64

UTC

 

method UTC: Time

 

Time UTC()

 

func UTC() -> Time

 

func UTC() Time

 

Function UTC() As Time

Weekday

 

method Weekday: Weekday

 

Weekday Weekday()

 

func Weekday() -> Weekday

 

func Weekday() Weekday

 

Function Weekday() As Weekday

Year

 

method Year: int

 

int Year()

 

func Year() -> int

 

func Year() int

 

Function Year() As int

YearDay

 

method YearDay: int

 

int YearDay()

 

func YearDay() -> int

 

func YearDay() int

 

Function YearDay() As int

Zone

 

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

 

(string name, Int64 offset) Zone()

 

func Zone() -> (string, Int64)

 

func Zone() tuple of (|name=name| string, |name=offset| Int64)

 

Function Zone() As Tuple (Of string, Int64)