我想使用<ctime>的功能strftime()以ISO 8601 UTC格式打印时间,例如: 2016-01-12T10:37:20Z。 根据标准cplusplus,格式字符串%FT%TZ产生的结果与"%Y-%m-%dT%H:%M:%SZ"相同,但Visual Studio 2010不知道格式说明符%F和%T。这是为什么? They seem to have forgotten them?!
我发现格式的指令列表为strftime方法http://ruby-doc.org/core-2.3.0/Time.html#method-i-strftime 有多种方案来格式化像平日一时间,一个月的一天...但我感兴趣的是在格式化像 Time.parse("2016-02-30T12:24").strftime("%XXX, at %H:%M")
# => tomorrow at 12:24