求多线程安全的时间转换实现方法,该怎么解决

求多线程安全的时间转换实现方法
asctime   ctime等函数好象不是线程安全
但是MSDN文档里也没明显提到不是线程安全
但我看返回的是内部指针,个人感觉是线程不安全
因此想求教各位
将   _time64(&icurtime)获得的函数转换为自己定义格式字符串的线程安全方法,mktime好象也是线程不安全,用到了内部static数据,也不想使用CTime类,因为效率比较低,BOOST也不想用,有没有其他方法实现转换?
主要是将_time64_t转换为   tm结构,目前的两个转换函数我看都不是线程安全的,有好的方法吗?谢谢

例如,将__time64_t转换到   月-年   小时:分钟这样的格式

------解决方案--------------------
M$的很多的CRT函数都是用的线程局部存储(TLS)或者类似的东东, 是线程安全的...不过要用多线程的CRT库才行 ...
自己写这个东东也很简单地 ...
------解决方案--------------------
32-bit Windows Time/Date Formats
Remarks

The file time and the date are stored individually, using unsigned integers as bit fields. File time and date are packed as follows:

Time

Bit Position: 0 1 2 3 4 5 6 7 8 9 A B C D E F
Length: 5 6 5
Contents: hours minutes 2-second increments
Value Range: 0–23 0–59 0–29 in 2-second intervals


Date

Bit Position: 0 1 2 3 4 5 6 7 8 9 A B C D E F
Length: 7 4 5
Contents: year month day
Value Range: 0–119 1–12 1–31
(relative to 1980)
只找到这个,分别算下就行了吧?