Get number of seconds from a suffixed string

前端 未结 0 701
被撕碎了的回忆
被撕碎了的回忆 2020-12-14 22:23

I want to be able to parse time specification from a human understandable format like:

  • 2h

  • 40s

  • 50m

  • 1d

    <
相关标签:
回答
  • 消灭零回复
提交回复
热议问题