如何在cocos2dx中获取系统的年、月、日
Contents
In order to get the current date,time,we can use 2 methods-either using the localtime of the desktop or using GMT(GREENWICH MEAN TIME)
//USING THE LOCAL TIME
//USIMG GMT Replace the above line
and since that gmtime is 5 hours 30 min. less than the India time,we have to add that much time to the gmtime time for the current india time
原文:http://techbirds.in/how-to-get-current-datetimemonth-and-year-in-cocos2dx/