Is it possible to make a pattern for NodaTime's LocalTime, which matches the ISO 8601 standard for times? That is, can you make (minutes and) seconds optional, like you can make fractional seconds optional? I wish to be able to always have hours and minutes, but add everything else only when needed.
Optional seconds when serializing NodaTime.LocalTime?
422 views Asked by Mikkel R. Lund At
1
There are 1 answers
Related Questions in C#
- Add additional fields to Linq group by
- couldn't copy pdb file to another directory while consuming wcf web service
- Why are the aliases for string and object in lowercase?
- WPF MessageBox Cancel checkbox check
- Resolve object using DI container with object instance
- Creating a parametrized field name for a SELECT clause
- Does compiler optimize operation on const variable and literal const number?
- Get data from one form to another form in C#
- Writing/Overwriting to specific XML file from ASP.NET code behind
- Deleting Orphans with Fluent NHibernate
Related Questions in SERIALIZATION
- Saving FileSystemInfo Array to File
- Serializing to disk and deserializing Scala objects using Pickling
- Serializing TypeInfo / Type across .Net Platforms
- How can I send multiple objects over one socket in java?
- Non-intruisive Boost serialization of labelled enums C++
- While Conditions for Deserializing Multiple Objects in Java
- Xml serializing and deserializing with memory stream
- How do I Serialize a JMS Message?
- Serializable class with ISerializable constructor
- Serializing a struct whose definition is not known
Related Questions in ISO8601
- Matlab : datestr predefined date formats ISO8601
- PHP - Convert integer number of seconds to ISO8601 format
- Parsing ISO 8601 date format like 2015-06-27T13:16:37.363Z in Java
- How to make milliseconds optional in @JsonFormat for Timestamp parsing with Jackson?
- Amount of weeks between 2 iso8601 dates
- Optional seconds when serializing NodaTime.LocalTime?
- Validate an ISO-8601 datetime string in Python?
- ISO8601 DateTime String to be displayed in local users timezone
- ASP.NET WebApi 2: Disable deserialization of string argument containing ISO8601 Date
- ISO8601 Date in PHP with Format YYYY-MM-DDTHH:MM:SS.mmmmmmmZ
Related Questions in NODATIME
- How to find the the start and end of a yesterday with Noda Time?
- Recalculate WPF DatePicker value to specific Noda Time DateTimeZone
- Importing list of dates from a timezone with Noda Time
- Optional seconds when serializing NodaTime.LocalTime?
- Nodatime BclDateTimeZone EqualsImpl throws NotImplementedException
- How do I accurately represent a Date Range in NodaTime?
- Date to UTC not taking into account daylight savings
- Relatively defined dates for movable holidays in NodaTime
- Calculate week numbers with year starting in April
- NodaTime Invalid DateTime.Kind for Instant.FromDateTimeUtc
Related Questions in LOCALTIME
- Set LocalTime joda
- Coverting String to LocalTime with/without nanoOfSeconds
- Update Joda-Time in Grails
- Why the results of the command 'date -u' command 'date' faster than the result of 25 seconds in linux(centos 5.1)?
- Ruby On Rails : local_time gem : I dont want it to wrap date with <time> tag
- Optional seconds when serializing NodaTime.LocalTime?
- does time function handles time zone changes when the application is running
- Why is Joda LocalTime being render as String in Json Grails?
- Get only Timezone using Javascript
- Where are the different versions of localtime_s used in C?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
This doesn't exist in NodaTime currently, nor does it exist as an option for the built in
DateTimeandDateTimeOffsetobjects.Probably the best you could do is to create two patterns and add some logic for which to use.