Author Topic: Insertion of date/time stamp into editor  (Read 6725 times)

Offline BCCISProf

  • Multiple posting newcomer
  • *
  • Posts: 60
    • Professor Langsam's Home Page
Insertion of date/time stamp into editor
« 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.

Offline David Perfors

  • Developer
  • Lives here!
  • *****
  • Posts: 560
Re: Insertion of date/time stamp into editor
« Reply #1 on: September 28, 2006, 07:29:32 pm »
No, unless there is some hidden shortcut that I don't know....
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

sethjackson

  • Guest
Re: Insertion of date/time stamp into editor
« Reply #2 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
« Last Edit: September 28, 2006, 07:38:06 pm by sethjackson »

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Insertion of date/time stamp into editor
« Reply #3 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.
Be patient!
This bug will be fixed soon...

Offline BCCISProf

  • Multiple posting newcomer
  • *
  • Posts: 60
    • Professor Langsam's Home Page
Re: Insertion of date/time stamp into editor
« Reply #4 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

Thanks

Offline jpaterso

  • Multiple posting newcomer
  • *
  • Posts: 57
Re: Insertion of date/time stamp into editor
« Reply #5 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.