Skip to content

Up05/odin-RFC-3339-date-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

odin-RFC-3339-date-parser

Parser for the RFC 3339 date & time spec written in odin. I mainly wrote this for my TOML parser, so you're allowed to have just the date or just the time, or NOTHING AT ALLLLL.

And by the way, it probably works.

  import dates "RFC_3339_date_parser"
  // ...
  date, err := dates.from_string("1996-02-29 16:39:57-08:00")
  fmt.println(dates.to_string(date)) // prints: 1996-02-29 16:39:57-08:00 NONE

  assert(dates.is_date_lax("1996-02-29 doesn't matter")) // quickly determines if some
  assert(dates.is_date_lax("96:02:29   doesn't matter")) // string looks like a date

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages