C库解析日期时间 [英] C Library for Parsing Date Time
本文介绍了C库解析日期时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否知道c的日期解析功能。我正在寻找类似的东西:
Is one aware of a date parsing function for c. I am looking for something like:
time = parse_time("9/10/2009");
printf("%d\n", time->date);
time2 = parse_time("Monday September 10th 2009")
time2 = parse_time("Monday September 10th 2009 12:30 AM")
谢谢
推荐答案
朱利安图书馆做了很多你所要求的 - 特别看看它的解析的作品。但是,我认为这不符合你的要求( Monday
,我相信会抛出一个旋转; - )。
The Julian Library does much of what you ask -- see in particular how its parsing works. However I don't think it quite stretches ALL the way to your requirements (that Monday
, I believe, would throw it for a spin;-).
这篇关于C库解析日期时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文