本文介绍了如何使用日期时间字符串填充ctime的结构tm?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法提供任何格式的日期时间值作为字符串,其格式为字符串并获取结构tm填充或对象类型为time_t (的ctime)。 (像strptime一样的功能)。
应该可以在windows上使用。
以下链接有strptime实现,但我不确定是否可以是免费软件。
http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/time/strptime.c?rev=HEAD
有人可以建议吗?
解决方案
Hi,
Is there any way to provide Date Time Value of any format as string, its format as string and get structure tm filled or object of type time_t (ctime). (function like strptime).
It should be available on windows.
Below link has strptime implementation, but i ma not sure if it is free software.
http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/time/strptime.c?rev=HEAD
Can anybody suggest?
解决方案
这篇关于如何使用日期时间字符串填充ctime的结构tm?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!