Comments (11)
Original comment by jonathan.skeet
on 17 Mar 2012 at 9:21
- Added labels: V1-OutOfScope
from nodatime.
Original comment by malcolm.rowe
on 13 Jul 2012 at 8:33
- Added labels: Type-Enhancement
from nodatime.
Original comment by malcolm.rowe
on 30 Jul 2012 at 7:47
- Added labels: Milestone-1.1-consider
- Removed labels: V1-OutOfScope
from nodatime.
Is this still an issue? I thought we were doing the first of those already
("if you ask for an alias you get the exact same time zone object as the
canonical one").
Original comment by malcolm.rowe
on 10 Nov 2012 at 9:34
from nodatime.
Yes, it's still an issue. I'd expected that behaviour, but we don't get it:
var provider = DateTimeZoneProviders.Tzdb;
Console.WriteLine(provider["Europe/Jersey"].Id); // Europe/Jersey
I'd have expected Europe/London. Hmm.
Original comment by jonathan.skeet
on 10 Nov 2012 at 3:48
from nodatime.
Right, the code is pretty simple. We have a dictionary in the resources, but
when we ask for a time zone, we load it *from* the canonical name, but tell it
that its ID was the one we asked for.
Given that this isn't something which applies to the BCL, I'm tempted to create
an interface for "stuff which TZDB provides but isn't in all time zones" -
which would expose a CanonicalId property to start with. We can very easily do
this with no change in the resource format.
Original comment by jonathan.skeet
on 10 Nov 2012 at 4:11
from nodatime.
Suggestion for TzdbDateTimeZoneSource: we should expect it to have extra
properties of:
- IDictionary<string, string> CanonicalIdMap (e.g. Europe/Jersey to
Europe/London)
- Lookup<string, string> Aliases (e.g. Europe/London to { Europe/Jersey,
Europe/Guernsey, Europe/Isle_of_Man })
- Lookup<string, string> SystemIdAliases (e.g. GMT Standard Time to {
Europe/London, Atlantic/Canary, Atlantic/Faeroe, ... }) - see issue 82.
- IDictionary<string, string> SystemIdMap (e.g. Europe/London to GMT Standard
Time)
Question: should an alias list include the canonical version, or just
"different" aliases?
Original comment by jonathan.skeet
on 11 Nov 2012 at 1:14
from nodatime.
I've started implementing CanonicalIdMap and Aliases now; SystemIdAliases will
require a format change, and therefore discussion on compatibility.
Original comment by jonathan.skeet
on 11 Nov 2012 at 6:42
- Changed state: Started
from nodatime.
This issue was closed by revision 1a8208d3a4ce.
Original comment by jonathan.skeet
on 11 Nov 2012 at 9:09
- Changed state: Fixed
from nodatime.
Note that this *doesn't* fix issue 82; that's still pending, but as it's
already got its own issue, I see no reason to leave this one open.
Original comment by jonathan.skeet
on 11 Nov 2012 at 9:24
from nodatime.
Original comment by malcolm.rowe
on 6 Apr 2013 at 9:27
- Added labels: Milestone-1.1.0
- Removed labels: Milestone-1.1-consider
from nodatime.
Related Issues (20)
- Deserialization with Json.NET problem when using JToken.ToObject HOT 1
- Does `SkippedTimeException` use the right base constructor? HOT 2
- Typo in comment HOT 1
- Custom Pattern Support for text serialization HOT 6
- Nullable arguments in Parse methods HOT 1
- Incorrect names for Ukrainian aliases HOT 2
- Idea: Add the ability to compute `Interval` compliments HOT 9
- Question: FakeClock and AutoAdvance HOT 3
- Use Int128 in .NET 8 target
- Check AOT support in .NET 8
- Repository link in nuget is point to website HOT 2
- Proposal: Week type HOT 2
- Conversion operators `Duration` - `TimeSpan` HOT 2
- Period Between invalid calculation HOT 5
- NodaTime 3.x makes app flagged as Malware HOT 5
- Remove polyfil package HOT 1
- Missing timezone for Kosovo HOT 2
- Provide RFC9557 patterns HOT 5
- Calling Instant.FromUtc(2024, 2, 29, 12, 0) results in a out of range exception HOT 3
- Potential mistake in the docs for `LocalDatePattern.CreateWithInvariantCulture` HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nodatime.