internationalization - How is the Australia/Melbourne and Australia/Victoria treated in NodaTime? -


i have started using nodatime , noticed little problem.

based on wiki page https://en.wikipedia.org/wiki/list_of_tz_database_time_zones

australia/melbourne should have dst time shift +11 , non dst time shift +10. in nodatime looks austrralia/melbourne +10/+10.

on wiki australia/melbourne similar australia/victoria in nodatime australia/victoria +11/+11

where source of truth? wiki outdated or nodatime db not in sync? or maybe there other fascinating problem happening.

where source of truth?

the iana time zone database best source i'm aware of, , that's noda time uses.

if want see results of , have been on time, tzvalidate page has list of files, 1 per iana release. each file shows every transition in every time zone between 1900 , 2035.

now, i'm not seeing results are, suggests you're not using noda time correctly. here's example:

using nodatime; using system;  public class program {     public static void main(string[] args)     {         var zone = datetimezoneproviders.tzdb["australia/melbourne"];          var start = instant.fromutc(2015, 1, 1, 0, 0);         var end = instant.fromutc(2020, 1, 1, 0, 0);         foreach (var interval in zone.getzoneintervals(start, end))         {             console.writeline($"{interval.start} - {interval.end}: {interval.walloffset} {interval.name}");         }     } } 

output:

2014-10-04t16:00:00z - 2015-04-04t16:00:00z: +11 aedt 2015-04-04t16:00:00z - 2015-10-03t16:00:00z: +10 aest 2015-10-03t16:00:00z - 2016-04-02t16:00:00z: +11 aedt 2016-04-02t16:00:00z - 2016-10-01t16:00:00z: +10 aest 2016-10-01t16:00:00z - 2017-04-01t16:00:00z: +11 aedt 2017-04-01t16:00:00z - 2017-09-30t16:00:00z: +10 aest 2017-09-30t16:00:00z - 2018-03-31t16:00:00z: +11 aedt 2018-03-31t16:00:00z - 2018-10-06t16:00:00z: +10 aest 2018-10-06t16:00:00z - 2019-04-06t16:00:00z: +11 aedt 2019-04-06t16:00:00z - 2019-10-05t16:00:00z: +10 aest 2019-10-05t16:00:00z - 2020-04-04t16:00:00z: +11 aedt 

as can see, is +10 standard time , +11 daylight time.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -