Documentation
¶
Index ¶
- Constants
- Variables
- func GetYMD(t time.Time) (int, time.Month, int)
- type PlaceAndTime
- func (p *PlaceAndTime) GetArabicHour() int
- func (p *PlaceAndTime) GetLenOfDaytimeHour() time.Duration
- func (p *PlaceAndTime) GetRTElapsed() time.Duration
- func (p *PlaceAndTime) GetRTRemainder() time.Duration
- func (p *PlaceAndTime) GetRomanDate() string
- func (p *PlaceAndTime) GetRomanDateAndTime() string
- func (p *PlaceAndTime) GetRomanTime() string
- type RomanMonth
Constants ¶
View Source
const ( LATITUDE = 43.65 LONGITUDE = -79.38 )
Variables ¶
View Source
var ( DefaultTimeZone = "America/New_York" DefaultPT = PlaceAndTime{ T: time.Now(), Lat: LATITUDE, Lon: LONGITUDE, } )
View Source
var (
RomanYear = buildromanyear()
)
Functions ¶
Types ¶
type PlaceAndTime ¶
type PlaceAndTime struct {
T time.Time
Lat float64
Lon float64
TZ string // e.g., "America/New_York"
}
func (*PlaceAndTime) GetArabicHour ¶ added in v0.0.8
func (p *PlaceAndTime) GetArabicHour() int
func (*PlaceAndTime) GetLenOfDaytimeHour ¶
func (p *PlaceAndTime) GetLenOfDaytimeHour() time.Duration
GetRTRemainder - how long is a daytime hour for this PlaceAndTime? e.g., 1h16m1.583333333s
func (*PlaceAndTime) GetRTElapsed ¶
func (p *PlaceAndTime) GetRTElapsed() time.Duration
GetRTElapsed - how much time has passed in this Roman hour at this PlaceAndTime? e.g. 22m26s
func (*PlaceAndTime) GetRTRemainder ¶
func (p *PlaceAndTime) GetRTRemainder() time.Duration
GetRTRemainder - how much time is left in this Roman hour at this PlaceAndTime before the next hour arrives? e.g. 22m26s
func (*PlaceAndTime) GetRomanDate ¶
func (p *PlaceAndTime) GetRomanDate() string
GetRomanDate - a. d. vii Quinctilis MMXXIV
func (*PlaceAndTime) GetRomanDateAndTime ¶
func (p *PlaceAndTime) GetRomanDateAndTime() string
GetRomanDateAndTime - 25 Jul 24 10:09 EDT --> hora IV a. d. vii Quinctilis MMXXIV (in Toronto...)
func (*PlaceAndTime) GetRomanTime ¶
func (p *PlaceAndTime) GetRomanTime() string
GetRomanTime - 10:09 EDT --> hora IV (in Toronto...)
Click to show internal directories.
Click to hide internal directories.