C++ Converting a time string to seconds from the epoch

前端 未结 10 595
無奈伤痛
無奈伤痛 2020-12-01 14:53

I have a string with the following format:

2010-11-04T23:23:01Z

The Z indicates that the time is UTC.
I would rather store t

10条回答
  •  再見小時候
    2020-12-01 15:19

    You could utilize the boost::date_time and write a small manual parser (probably regexp-based) for your strings.

提交回复
热议问题