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?
415 Views Asked by Mikkel R. Lund At
1
There are 1 best solutions below
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
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
- XML Deserializing lists with objects only getting one level
- Using active model serializers for json and csv in Rails?
- Why does Java serialization take up so much space?
- Using Gson to serialize strings with \n in them
- How to covert JSON field name to a Java compatible property name while doing Jackson de-serialisation?
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
- Date ISO 8601 in URL
- Extracting time from timestamp
- spring boot Joda DateTime Serialisation
- MS SQL Server 2012 exports datetime as script which it cannot import
- ISO 8601 Duration with milliseconds?
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
- How to pass a Noda Time (or any third-party type) object as a parameter in WCF?
- Midnight Transitions in NodaTime 2.x vs 3.x
- "JsonException: The JSON value could not be converted to NodaTime.Instant" NodaTime issue with ASP.NET Core 3.1 Razor Page web application
- Noda Time and recurrent operations (c#)
- How to get the week day within a week of given date?
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?
- i have set of date ranges, i need to get the combined date range ,if any of the date overlaps in java
- How to convert String containing date and time to LocalTime variable
- C: How to print a particular `time` value in a particular timezone (by offset)?
- Get the current time in C
- NSDateFormatter gives me back Greenwich time
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)
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?
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.