ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

DONE: Time Stamp to Clipboard

<< < (4/4)

springro:
Sounds like this has been solved for most people, but here's how I went at this.

Half  the time I need a date or time stamp, I'm typing and don't want to go to the mouse - nor do I need it to go to the clipboard.

So... Just use a keyboard shortcut and/or replacement codes and you can setup however you like the dates.
The string replacement works than a control combination when you're renaming a file.

I used the that are pretty uncommon words to type otherwise:
":date"  ->31Mar2006 08:35   (date & time stamp)
";date" -> 31Mar2006
"ddate" -> 03-31-06  (dash date)
"udate" -> 03_31_06  (underline date)
"sdate" -> 03/31/06 (slash date)


--- ---; ----- Enter current date & time when :date is typed  --------
:::date::
  SetKeyDelay,0
  Send %A_DD%%A_MMM%%A_Year% %A_Hour%:%A_Min% 
return

; ----- Enter current date when ;date is typed  --------
::;date::
  SetKeyDelay,0
  Send %A_DD%%A_MMM%%A_Year%
return

; s+date = slash date MM/DD/YY
::sdate::
    StringRight, year, A_YYYY, 2
    Send %A_Mon%/%A_Mday%/%year%
return

; ----- Std format dates (for filenaming) --------
; d date = dash date MM-DD-YY
::ddate::
    StringRight, year, A_YYYY, 2
    Send %A_Mon%-%A_Mday%-%year%
return
; u+date = underline date MM_DD_YY
::udate::
    StringRight, year, A_YYYY, 2
    Send %A_Mon%_%A_Mday%_%year%
return

Sending a copy of the same information to the clipboard would be a simple addition.

Best,
Rob

TychoBarfy:
2hurricanedavid, great little tool.
I'm german using german locale on my system, but for editing my RSS feed manualy I need a timestamp, which uses the english locale.

If I want to use a string like this
Ddd, dd Mmm yyyy HH:mm:ss GMT
I only get the german string
Do, 22 Feb 2007 23:31:29 GMT
but I wish to have the english one
Thu, 22 Feb 2007 22:31:29 GMT

Would it be possible, to implement the option to choose the locale?
May be like this
en>Ddd, dd Mmm yyyy HH-1:mm:ss GMT

To implement only the english locale as additional choice for people with other system locales than english would be enough.
To substract one hour by hand would not be the problem.

TychoBarfy:
Made a small JavaScript now.

Navigation

[0] Message Index

[*] Previous page

Go to full version