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?
423 views Asked by Mikkel R. Lund At
1
There are 1 answers
Related Questions in C#
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in SERIALIZATION
- Deserialize XML with optional different name
- How to serialize Any with Kotlin serialization?
- Flink Stuck on Broadcast
- How do I add serialization into Kotlin Jet Compose project?
- fix django login bug
- How to execute code "before_serialize"? or How can I sanitize attributes before they are serialized?
- Ical.net Serialization Error when serializing 12:00 AM Midnight
- how can i unserialize Symfony transport messages?
- How to change a queryset in Django?
- How to serialize object to JSON format which inherits IList and has other properties
- Json.stringify() is ignoring a object property after xlsx.sheet_to_json
- how to make aiogram.Message from telethon.Message
- implementin filter for vector of custom struct in RUST
- How to properly Serialize/Deserialize an ArrayList with Custom Objects?
- Append serialized objects to a single file and load Rust
Related Questions in ISO8601
- Converting ISO 8601-compliant String to epoch on KitKat
- How to convert Python datetime into ISO8601 timestamp string with milliseconds and military timezone letter? `%Y-%M-%DT%h:%m:%.3sZ`
- Function to find the number of ISO-weeks in a month
- ISO-8601 week data representation for basic temporal operations
- What is the correct way to write date-time in ISO 8601 format when milliseconds has less than 3 digits?
- Pandas to_datetime() with mixed input string format
- How to import time series data with the following timestamp format (2016-04-26 21:00:00+00) - QuestDB
- How to Format a datetime to String as "yyyy-MM-dd'T'HH:mm:ss.SSSZ'" format in python
- How do I fix the date format In Powershell to use ISO 8601
- ISO Duration format to google sheets
- Format date time using jq
- Parsing an ISO datetime in MicroPython to get weekday
- Should hypen-minus (U+002D) or hypen (U+2010) be used for ISO 8601 datetimes?
- What should an ISO-8601 date look like at exactly 0 milliseconds?
- Printing a datetime, with timezone, but excluding the timezone name
Related Questions in NODATIME
- How to add a year to an Instant in NodaTime?
- UTC offset time that will evaluate to a specific local time
- Using NodaTime How do I calculate the number of minutes between two datetimes while factoring in business hours and timezone?
- Is there a way to compare LocalDate After Retrieving Timezones on Npgsql EF Core?
- How to deserialize java duration in c#?
- How to deserialize an `Instant` without the final Z with NodaTime and `System.Text.Json`?
- How can I get NodaTime to update when Android updates the TimeZone?
- How to turn off NodaTime when using EF Core to scaffold DbContext from Postgres?
- Noda Time: Period.Between() 01/01/2023 and 31/12/2023 returns 11 months instead of 12
- How to map java.time.Instant to Nodatime.Instant when creating a Xamarin Android Native binding
- .NET NodaTime - Derive custom class from DateTimeZone error
- System.InvalidCastException: Can’t write CLR type NodaTime.LocalDateTime with handler type TimestampHandler
- Save an object that uses a Nodatime LocalDateTime to csv using csvhelper
- The value of Noda Time library: Test Scenarios
- EF Core with NodaTime and Hangfire
Related Questions in LOCALTIME
- How to fix the non-updating clock on a tkinter weather app?
- Parse a datetime string that has no 'T' separator using java.time
- Converting UTC to Local Time with daylight saving in Java
- How to save time (Localtime) from WheelTimePicker on API 24?
- Convert Date to UTC DateTime
- LocalTime truncating trailing 00 values
- Is there any date/time function that handles tomorrow's date including carry over into next month?
- Can't get right time in C with localtime()?
- localtime() giving the wrong date in C
- Is there a way to set alarm in android with local date and local time?
- How to convert timestamp, depends on user timezone?
- How to get the current time in a different city in C?
- Why is Java LocalTime 01:32:13.283256 stored as time 00:32:13 in database? 1 hour behind
- Java int formating?
- HQL query: filtering LocalDateTime property by LocalTime
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?
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.