Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: BCCISProf on September 28, 2006, 06:47:49 pm

Title: Insertion of date/time stamp into editor
Post by: BCCISProf on September 28, 2006, 06:47:49 pm
Is there any way of inserting the current date and time stamp in the editor?

Thank you.
Title: Re: Insertion of date/time stamp into editor
Post by: David Perfors on September 28, 2006, 07:29:32 pm
No, unless there is some hidden shortcut that I don't know....
Title: Re: Insertion of date/time stamp into editor
Post by: sethjackson on September 28, 2006, 07:32:28 pm
No I don't think there is. If you use SVN you can do this though......

Code: cpp
/*
 * $Date$
 * $Revision$
 * $Author$
 * $HeadURL$
 */

http://svnbook.red-bean.com/nightly/en/svn.advanced.props.html#svn.advanced.props.special.keywords
Title: Re: Insertion of date/time stamp into editor
Post by: mandrav on September 28, 2006, 07:52:29 pm
Check tomorrow's nightly (I don't think this can make it in tonight's) ;).
Here are the newly added editor abbreviations:

tday = 20060928
tdayu = 20060928
today = 2006-09-28
todayu = 2006-09-28
now = 2006-09-28-20.48
nowl = 2006-09-28-20.48.58
nowu = 2006-09-28-17.48
nowlu = 2006-09-28-17.48.58
wdu = Thursday

(these with the 'u' suffix, refer to UTC times).

To use any of them just type the abbreviation (e.g. "nowl") in the editor and press Ctrl-J.
Title: Re: Insertion of date/time stamp into editor
Post by: BCCISProf on September 28, 2006, 08:52:48 pm
Wow! Thats what I call service. Thanks so much!

If you have a moment, can you take a look at the questions in my previous post

http://forums.codeblocks.org/index.php?topic=4058.0 (http://forums.codeblocks.org/index.php?topic=4058.0)

Thanks
Title: Re: Insertion of date/time stamp into editor
Post by: jpaterso on September 29, 2006, 03:12:32 am
Ah wonderful!!
I asked for this a while ago, and now it is here  :D

Thanks very much, C::B team!

Joe.