Parsing ISO 8601 like duration in Luxon

I have duration string that looks like:

1:16.352

where 1 is minutes part, 16 is seconds part and 352 is millisecond part.

I wanted to use Duration.fromISOTime but I get:

{
  "reason": "unparsable",
  "explanation": "the input \"1:16.352\" can't be parsed as ISO 8601"
}

Is there a clean way of parsing such duration in Luxon?

161 thoughts on “Parsing ISO 8601 like duration in Luxon”

  1. Wow, incredible blog layout! How long have you ever been blogging for?

    you made blogging glance easy. The overall glance of your website is fantastic, let alone the
    content material!

    Reply
  2. An outstanding share! I have just forwarded this onto
    a coworker who was doing a little homework on this.
    And he in fact bought me lunch because I found
    it for him… lol. So let me reword this…. Thank YOU
    for the meal!! But yeah, thanks for spending some time to discuss this topic
    here on your internet site.

    Reply
  3. Hello just wanted to give you a quick heads up. The text in your post seem to be running off
    the screen in Firefox. I’m not sure if this is a format issue or something
    to do with internet browser compatibility but I thought I’d
    post to let you know. The style and design look great though!
    Hope you get the issue fixed soon. Kudos

    Reply
  4. Greetings from Ohio! I’m bored to tears at work so I decided to check out your
    site on my iphone during lunch break. I enjoy the info
    you provide here and can’t wait to take a look
    when I get home. I’m shocked at how fast your blog loaded on my cell phone ..
    I’m not even using WIFI, just 3G .. Anyways, great blog!

    Reply
  5. I absolutely love your blog.. Very nice colors & theme. Did you make this amazing site
    yourself? Please reply back as I’m attempting to
    create my very own blog and want to learn where you got this
    from or exactly what the theme is called. Thank you!

    Reply
  6. It’s actually a great and helpful piece of information. I’m
    glad that you simply shared this helpful information with us.

    Please keep us up to date like this. Thank you for sharing.

    Reply
  7. Hey there! I know this is kinda off topic but I’d figured I’d ask.
    Would you be interested in trading links or
    maybe guest authoring a blog post or vice-versa?
    My website addresses a lot of the same subjects as yours and I think we could greatly benefit from each other.
    If you happen to be interested feel free to send me an e-mail.
    I look forward to hearing from you! Fantastic blog by the way!

    Reply
  8. I’m not sure exactly why but this blog is loading very slow for me.
    Is anyone else having this issue or is it a issue on my
    end? I’ll check back later and see if the problem still
    exists.

    Reply
  9. Wonderful goods from you, man. I’ve understand
    your stuff previous to and you’re just too excellent.

    I really like what you’ve acquired here, certainly like what you are saying and the way
    in which you say it. You make it entertaining and you still care for to keep it wise.
    I cant wait to read much more from you. This is
    really a wonderful site.

    Reply
  10. I am really impressed along with your writing skills as smartly as with the format for your weblog.
    Is that this a paid subject or did you customize it yourself?
    Anyway keep up the excellent quality writing, it is uncommon to see a nice blog like this one nowadays..

    Reply
  11. Thanks on your marvelous posting! I certainly enjoyed reading it, you are a great author.I
    will always bookmark your blog and may come back later on. I
    want to encourage you to ultimately continue your great work, have a nice afternoon!

    Reply

Leave a Comment