Documentation
¶
Index ¶
- Constants
- Variables
- func GetYMD(t time.Time) (int, time.Month, int)
- type PlaceAndTime
- 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) GetLenOfDaytimeHour ¶
func (p *PlaceAndTime) GetLenOfDaytimeHour() time.Duration
GetRTRemainder - how long is a daytime hour at p?
func (*PlaceAndTime) GetRTElapsed ¶
func (p *PlaceAndTime) GetRTElapsed() time.Duration
GetRTElapsed - how much time has passed in this Roman hour
func (*PlaceAndTime) GetRTRemainder ¶
func (p *PlaceAndTime) GetRTRemainder() time.Duration
GetRTRemainder - how much time is left in this Roman hour before the next hour arrives
func (*PlaceAndTime) GetRomanDate ¶
func (p *PlaceAndTime) GetRomanDate() string
func (*PlaceAndTime) GetRomanDateAndTime ¶
func (p *PlaceAndTime) GetRomanDateAndTime() string
func (*PlaceAndTime) GetRomanTime ¶
func (p *PlaceAndTime) GetRomanTime() string
Click to show internal directories.
Click to hide internal directories.