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(awall: uint64; aext: int64; aloc: Memory<Location>)
Time(uint64 awall, int64 aext, Memory<Location> aloc)
init(_ awall: uint64, _ aext: int64, _ aloc: Memory<Location>)
Sub New(awall As uint64, aext As int64, aloc As Memory<Location>)
Parameters:
- awall:
- aext:
- aloc:
constructor (Time)
Parameters:
- value:
Add
method Add(d: Duration): Time
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
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
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() -> tuple of (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() -> tuple of (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
Equal
method 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() -> tuple of (Slice<Byte>, error)
func GobEncode() tuple of (Slice<Byte>, error)
Function GobEncode() As Tuple (Of Slice<Byte>, error)
Hour
In
method In(loc: Memory<Location>): Time
Time In(Memory<Location> loc)
func In(_ loc: Memory<Location>) -> Time
func In(loc Memory<Location>) Time
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() -> tuple of (Int64, Int64)
func ISOWeek() tuple of (|name=year| Int64, |name=week| Int64)
Function ISOWeek() As Tuple (Of Int64, Int64)
IsZero
Function IsZero() As bool
Local
Location
method Location: Memory<Location>
Memory<Location> Location()
func Location() -> Memory<Location>
func Location() Memory<Location>
Function Location() As Memory<Location>
MarshalBinary
method MarshalBinary: tuple of (Slice<Byte>, error)
(Slice<Byte>, error) MarshalBinary()
func MarshalBinary() -> tuple of (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() -> tuple of (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() -> tuple of (Slice<Byte>, error)
func MarshalText() tuple of (Slice<Byte>, error)
Function MarshalText() As Tuple (Of Slice<Byte>, error)
Minute
Month
Function Month() As Month
Nanosecond
Function Nanosecond() As int
Round
method Round(d: Duration): Time
func Round(_ d: Duration) -> Time
func Round(d Duration) Time
Function Round(d As Duration) As Time
Parameters:
- d:
Second
String
Function String() As string
Sub
method Sub(u: Time): Duration
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
UnixNano
Function UnixNano() As int64
UTC
Weekday
func Weekday() -> Weekday
Function Weekday() As Weekday
Year
YearDay
Function YearDay() As int
Zone
method Zone: tuple of (name: string, offset: Int64)
(string name, Int64 offset) Zone()
func Zone() -> tuple of (string, Int64)
func Zone() tuple of (|name=name| string, |name=offset| Int64)
Function Zone() As Tuple (Of string, Int64)