PHP's strtotime() in Java

后端 未结 5 1217
终归单人心
终归单人心 2020-11-28 09:42

strtotime() in PHP can do the following transformations:

Inputs:

strtotime(’2004-02-12T15:19:21+00:00′);
strtotime(’Thu, 21 Dec 2000 16:01:07 +0200′);
str         


        
5条回答
  •  旧巷少年郎
    2020-11-28 10:08

    As far as I know, nothing like this exists. You would have to hack one together yourself. However, it might not be necessary. Try storing the dates as timestamps and just doing the simple math. I understand this isn't as clean as you might like. But it would work.

提交回复
热议问题