Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
「2011-08-2121:48:45+1200」という文字列があり、同じ形式の別の文字列があるとします。これら2つの文字列を比較して、どちら が 早いか遅いかを調べます。文字列を文字で比較するのではなく、文字列を時間形式に変換する簡単な方法はありますか?ありがとう
getdateまたはstrptime()を使用します。