Documentation
¶
Index ¶
- type Duration
- type Month
- type Time
- func (t Time) DateString() (result string)
- func (t Time) DayString() (result string)
- func (t Time) Hour() int
- func (t Time) HourString() (result string)
- func (t Time) Minute() int
- func (t Time) MinuteString() (result string)
- func (t Time) Month() Month
- func (t Time) Second() int
- func (t Time) SecondString() (result string)
- func (t Time) String() (result string)
- func (t Time) TimeString() (result string)
- func (t Time) TimeStringWithSeconds() (result string)
- func (t Time) Weekday() Weekday
- func (t Time) Year() int
- func (t Time) YearString() (year string)
- func (t Time) YearStringInCase() (year string)
- type Weekday
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Duration ¶
A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years.
func (Duration) Nanoseconds ¶
Nanoseconds returns the duration as an integer nanosecond count.
func (Duration) StringApproximate ¶
Returns a string representation of the approximate duration in russian language
type Month ¶
Base type for month
func (Month) StringInCase ¶
Returns representation of Month in case Января, Декабря...
type Time ¶
Base type for DateTime. Can be converted from time.Time
func (Time) DateString ¶
Returns date string representation of Time
func (Time) HourString ¶
Returns string representation of Hour
func (Time) Minute ¶
Returns the minute offset within the hour specified by t, in the range [0, 59].
func (Time) MinuteString ¶
Returns string representation of Minute
func (Time) Second ¶
Returns the second offset within the minute specified by t, in the range [0, 59].
func (Time) SecondString ¶
Returns string representation of Second
func (Time) TimeString ¶
Returns time string representation of Time without seconds
func (Time) TimeStringWithSeconds ¶
Returns time string representation of Time with seconds
func (Time) YearString ¶
Returns string representation of Year
func (Time) YearStringInCase ¶
Returns string representation of Year in case Двухтысячного года, Одна тысяча девятьсот четертого года