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")
感谢您
推荐答案
的朱利安图书馆做多与你的要求 - 尤其见它是如何的解析工作。不过,我不认为这很绵延一路您的要求(即周一
,我相信,会抛出让它干点活儿; - )。
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屋!
查看全文