Andes Workshop

It is currently Tue Sep 26, 2017 7:27 am

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Adding Last Build Date & Time in the main code
PostPosted: Wed Oct 07, 2015 12:18 pm 
Offline

Joined: Thu Apr 03, 2014 4:27 pm
Posts: 19
If you need or want the date and/or time the last time your app was built then there are two handy macros you can use. Consider the following example:

char *date = __DATE__; // e.g. 'Dec 15 2009'
char *time = __TIME__; // e.g. '15:25:56'

NSLog(@"Build date: %s", date);
NSLog(@"Build time: %s", time);

Example:
Attachment:
2015_10_05.png
2015_10_05.png [ 14.42 KiB | Viewed 1298 times ]


Attachment:
build_date.zip [41.23 KiB]
Downloaded 78 times


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group