Comments (9)
Original comment by jonathan.skeet
on 17 Mar 2012 at 9:28
- Added labels: V1-OutOfScope
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.
We added the 'r' format specifier to LocalDateTime in revision a7722264b63c,
which includes the calendar system. From what I can see, there's no 'o' or 'r'
format for LocalDate.
LocalDateTime.ToString() currently uses 'G' to format by default, which is
culture-sensitive; LocalDate currently uses 'D'. I'm not entirely sure what
the expectations are for ToString() in .NET: whether it's intended to be a
debugging output, or a 'reasonable' human-readable output; if the latter,
changing to the roundtrip format (for LocalDateTime) would probably be
unreasonable, but perhaps suffixing " (c)" for non-ISO calendars would be okay.
[ToString()'s documentation is "the value of the current instance in the
standard format pattern"; I don't know what "standard" format pattern refers to
in this case, or whether it would be considered a breaking change to modify it
in 1.1.]
Original comment by malcolm.rowe
on 9 Nov 2012 at 7:49
from nodatime.
Per discussion: we don't really want to change the default (parameterless)
format used by ToString(), just to provide a roundtrip standard format.
So the only thing left to do is to create a roundtrip pattern for LocalDate (we
don't currently have one), and expose it/them via the 'o'/'O'/'r' standard
pattern.
This probably partly depends upon issue 138: consistent naming for standard
patterns.
Original comment by malcolm.rowe
on 10 Nov 2012 at 4:57
- Now blocked on: #138
from nodatime.
Original comment by malcolm.rowe
on 10 Nov 2012 at 4:58
- Changed title: LocalDate.ToString does provide calendar information
- Added labels: Type-Enhancement
from nodatime.
Original comment by malcolm.rowe
on 10 Nov 2012 at 4:58
- Changed title: LocalDate.ToString does not provide calendar information
from nodatime.
Original comment by malcolm.rowe
on 25 Jan 2013 at 8:52
- Added labels: Milestone-1.2.0
- Removed labels: Milestone-1.1-consider
from nodatime.
I suspect that all of our types will want a "roundtrip assuming I'm using the
right calendar" format, and a "roundtrip by specifying the calendar" format.
Use of non-Gregorian calendars is going to be pretty rare, I suspect.
Original comment by jonathan.skeet
on 9 Apr 2013 at 7:35
from nodatime.
We now have the c specifier for all appropriate types.
Original comment by jonathan.skeet
on 26 Jul 2013 at 6:33
- Changed state: Fixed
from nodatime.
Related Issues (20)
- Lock Contention when calling ToString from multiple threads HOT 1
- 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 7
- 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
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.