Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrOverflow = errors.New("binary: varint overflows a 64-bit integer")
Functions ¶
func GetPacificLocation ¶
GetPacificLocation returns the time.Location for America/Los_Angeles (Pacific Time). It attempts to load the location from the system's timezone database.
func ParseMabiTime ¶
ParseMabiTime converts a Mabinogi timestamp (ticks) to a time.Time object. Mabinogi servers use Pacific Time. This function handles both PST and PDT by loading the America/Los_Angeles location.
NOTE FOR FUTURE DEVELOPERS: If the timers are off by 1 hour, it is likely due to a Daylight Saving Time (DST) transition. Go's time.LoadLocation("America/Los_Angeles") should handle this automatically by using the system's tzdata. If it fails, check if the system timezone database is up to date or if tzdata is bundled.
func TimeToMabiTime ¶
TimeToMabiTime is the inverse of ParseMabiTime, converting a time.Time to Mabinogi ticks.
Types ¶
This section is empty.