NSDate/NSDateFormatter - Storing only time, not date?

前端 未结 4 1697
谎友^
谎友^ 2021-02-20 05:44

I\'ve been looking around but I haven\'t seen anything that addresses this so I\'m hoping someone can help clear this up for me. What I am trying to do is use an NSDate variable

4条回答
  •  星月不相逢
    2021-02-20 06:10

    I ended up not using NSDate/NSDateFormatter because I couldn't get it to work properly. My solution consisted of parsing my time string into a hours, minutes, and seconds. I eventually ended up converting everything to seconds, and storing them in that way.

提交回复
热议问题