- Updated to avoid Haxe 4 deprecation warnings (#27)
- Fixed months additions, which result falls on December (#24)
- Fixed
-=operation ondatetime.DateTimeinstances (#23)
datetime.DateTime.getLocalOffset()returns current local time offset relative to UTC time.
datetime.Timezone.loadData(data:String)loads timezone database at runtime.- fix DateTimeInterval comparison (now depends on interval sign) by @jonnydee.
- fix subtracting amount of months, which equals month number in DateTime instance (#17)
- fixed Haxe 3.4 compatibility for cpp target
datetime.DateTime.getDate()- converts to standartDateclass.- fix
<=operator.
workaround for a bug which prevented using timezones database on android.
datetime.Timezone.get(zoneName)now returnsnullifzoneNameis not a correct IANA timezone name.datetime.Timezone.getZonesList() : Array<String>return a list of all timezones names.datetime.DateTime.local()is now astaticmethod wich returns user's current local date&time.- new enum:
datetime.DTMonth- contains list of months. datetime.DateTime.monthStart()is a private method now. UsegetMonthStart(month:DTMonth) : DateTimeinstead.datetime.DateTime.yearStart()is a private method now. Usesnap(Year(Down)) : DateTimeinstead.- new classes which describe periods between time changes in timezone:
datetime.utils.pack.TZPeriod,datetime.utils.pack.DstRule. Both implementdatetime.utils.pack.IPeriod datetime.Timezone.getAllPeriods() : Array<IPeriod>- returns all periods between timechanges in this zonedatetime.Timezone.getPeriodForLocal(localDateTime) : TZPeriod- returns period which containslocalDateTimedatetime.Timezone.getPeriodForUtc(utc) : TZPeriod- returns period wich containsutc- Changed TZdata file format (reduced from 2.5Mb to 116Kb)
- Added script for 'semi-automatic' TZdata updates:
haxelib run datetime