How to compare two time stamp in format “Month Date hh:mm:ss” to check +ve or -ve value

后端 未结 3 1138
半阙折子戏
半阙折子戏 2020-11-30 14:20

I checked the stackoverflow site for my answer, i did not get, so i am posting it here.

My problem is:

How to compare two time stamp in format

3条回答
  •  误落风尘
    2020-11-30 15:26

    Look at strptime()

    It converts an ASCII string formatted date/time into a struct tm

提交回复
热议问题