Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Can = [10]string{"Giáp", "Ất", "Bính", "Đinh", "Mậu", "Kỷ", "Canh", "Tân", "Nhâm", "Quý"} Chi = [12]string{"Tý", "Sửu", "Dần", "Mão", "Thìn", "Tỵ", "Ngọ", "Mùi", "Thân", "Dậu", "Tuất", "Hợi"} DaysOfWeek = [7]string{"Chủ Nhật", "Thứ Hai", "Thứ Ba", "Thứ Tư", "Thứ Năm", "Thứ Sáu", "Thứ Bảy"} VietnamTimezone = "Asia/Ho_Chi_Minh" )
Functions ¶
func Lunar2Solar ¶
The function Lunar2Solar converts a given Lunar date (lunarDay, lunarMonth, lunarYear, lunarLeap) in the Vietnamese Lunar calendar into the corresponding Solar date (d, m, y). The time zone (tz) is used to calculate the date in the Solar calendar.
func Solar2Lunar ¶
The function Solar2Lunar converts a given Solar date (dd, mm, yy) into the corresponding Lunar date (lunarD, lunarM, lunarY) in the Vietnamese Lunar calendar. It also determines if the given Lunar month is a leap month or not (lunarLeap). The time zone (tz) is used to calculate the date in the Lunar calendar.
func VietnamLocation ¶
VietnamLocation returns the *time.Location for Vietnam
Types ¶
Click to show internal directories.
Click to hide internal directories.