-1
我有一個方法,需要包含一個數據時間作爲參數。我怎麼寫這個?在string data_time(c_time time); ? is it correct?.
其次:
string data_time(c_time time)
{
i would like to save the hour, second, minute, month and year in different string values. how to do this? need some help. i am working in ubuntu.. thx
}
在你的[最後一個問題](http://stackoverflow.com/questions/6124768/)[答案]()之一是檢查'Boost.Datetime'。你做過了嗎?它具有良好的文檔並且易於使用。 – 2011-05-25 13:38:44
上一個問題的重複http://stackoverflow.com/questions/6124768/how-to-get-local-time-and-put-it-in-a-string/6124891#6124891 – iammilind 2011-05-25 13:45:50
我做到了; t得到答案到第一個問題:)。如果data_time(c_time正確與否) – marryy 2011-05-25 13:47:29