topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Wednesday December 11, 2024, 6:40 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: DONE: Time Stamp to Clipboard  (Read 47970 times)

hurricanedavid

  • Participant
  • Joined in 2005
  • *
  • default avatar
  • Posts: 17
    • View Profile
    • Donate to Member
DONE: Time Stamp to Clipboard
« on: October 12, 2005, 10:20 AM »
Windows Notepad has a great little F5 (I think) to insert a time/date stamp.  But many programs do not.

What about a little app that stays in the systray and copies a configurable time/date stamp into the clipboard?  Then you can paste a timestamp into any program.

Right-clicking on systray icon would allow you to choose from some different formatted stamps perhaps.  And perhaps some you have configured yourself.

Examples:

John Smith [4/15/2005] -
2005.4.15 16:45
Blog Entry: 2005.4.15.16.45
Wednesday, April 15, 2005
15 Apr 2005
Apr 15, '05
04/15/2005 04:45pm
200504151645


(the last one would be great for pasting into filenames when making backups)
« Last Edit: March 31, 2006, 08:21 AM by brotherS »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: IDEA: Time Stamp to Clipboard
« Reply #1 on: October 12, 2005, 10:29 AM »
great idea.

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,149
    • View Profile
    • Donate to Member
Re: IDEA: Time Stamp to Clipboard
« Reply #2 on: October 12, 2005, 10:49 AM »

hurricanedavid

  • Participant
  • Joined in 2005
  • *
  • default avatar
  • Posts: 17
    • View Profile
    • Donate to Member
Re: IDEA: Time Stamp to Clipboard
« Reply #3 on: October 12, 2005, 01:23 PM »
I was not able to get to TClockEx.  But the second set of links pointed me to TClock2 which I installed.  Nice.

However, TClock2 only allows one format at a time.  And it does not allow for prefix/suffix text.  So perhaps this one could still be considered a possibility.

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: IDEA: Time Stamp to Clipboard
« Reply #4 on: October 12, 2005, 05:37 PM »
 :) I think my TicTocTitle from https://www.donation...om/Software/Skrommel will do what you want.

Skrommel
« Last Edit: October 13, 2005, 07:16 PM by skrommel »

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,149
    • View Profile
    • Donate to Member
Re: IDEA: Time Stamp to Clipboard
« Reply #5 on: October 13, 2005, 03:17 AM »
...  And it does not allow for prefix/suffix text.
-hurricanedavid (October 12, 2005, 01:23 PM)

You must put ' single quotes '  around the p/s text.
like in this TooltipFormatString:
ddd, d MMM |'Woche' ww|DDD 'te Tag des Jahres'
(an old Registry export from my TClockEx.)

hurricanedavid

  • Participant
  • Joined in 2005
  • *
  • default avatar
  • Posts: 17
    • View Profile
    • Donate to Member
Re: IDEA: Time Stamp to Clipboard
« Reply #6 on: October 13, 2005, 09:04 AM »
Well gents, the key here is that the program would allow the person to choose on the fly between different time stamp formats that they've already preset.  Both TClock2 and TicTocTitle are excellent programs, but they do not offer this key feature.

I may need one format for a log file I'm working on, and another in emails I write, and another for comments in a PHP script I work in.  In both the programs mentioned, I have to go into the config to change the format for the time stamp, and in TicTocTitle, I have to restart the app.

TicTocTitle already has "Copy time and date" in the popup menu of the systray icon.  Now if it just had more formats to choose from (in that pop up menu), especially if those formats were configurable by the user, it would be perfect.

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,149
    • View Profile
    • Donate to Member
Re: IDEA: Time Stamp to Clipboard
« Reply #7 on: October 13, 2005, 10:22 AM »
There was mention an clipboard utillity on this forum.
With this utillity you could set diff templates to past in too.
In this templates you can also use placeholders for time stamps.
So you could make a few templates with diff date/time items.
What was the name of this tool ?..........

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,149
    • View Profile
    • Donate to Member
Re: IDEA: Time Stamp to Clipboard
« Reply #8 on: October 13, 2005, 10:29 AM »
It was KanaClip
http://www.kana.home...p.net/index.php?i=43

Permanent clip can be used to put predefined text.
Permanent clip has the ability to create sub menu, so can manage the text better.
Permanent clip uses simple text format so it can be easily edited by using any text editor.
Integrated functions to add current date and time.



---
AND ShortCut
could do such things too.
 http://www.typer.de/


HTH  :huh:

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,149
    • View Profile
    • Donate to Member
Re: IDEA: Time Stamp to Clipboard
« Reply #9 on: October 13, 2005, 10:38 AM »
> It was KanaClip

Ahh, and yes, you must read the HISTROY.txt !!!
to know how it works.



______________________________________
23:16:18 03.08.2003 - Version 2.0.0.24
...
• Added symbols function for permanent clip. If permanent clip entry
  include the predefined symbol, it will be replaced by the associated
  text. For now, the symbols recognized are:
    %LONGDATE%       = current date in system long date format.
    %SHORTDATE%      = current date in system short date format.
    %LONGTIME%       = current time in system long time format.
    %SHORTTIME%      = current time in system short time format.
    %HOUR%           = current hour with leading zero (00-23).
    %SHORTHOUR%      = current hour without leading zero (0-23).
    %MINUTE%         = current minute with leading zero (00-59).
    %SHORTMINUTE%    = current minute without leading zero (0-59).
    %SECOND%         = current second with leading zero (00-59).
    %SHORTSECOND%    = current second without leading zero (0-59).
    %AMPM%           = the hour will be displayed in 12-hour format,
                       and the AM or PM will be displayed (depends on
                       system setting).
    %DATE%           = current date with leading zero (01-31).
    %SHORTDATE%      = current date without leading zero (1-31).
    %MONTH%          = current month with leading zero (01-12).
    %SHORTMONTH%     = current month without leading zero (1-12).
    %YEAR%           = current year in four-digit number (2003).
    %SHORTYEAR%      = current year in two-digit number (03).
    %MONTHSHORTNAME% = current month as an abbreviation (Jan-Dec) -
                       depends on system setting.
    %MONTHLONGNAME%  = current month as full name (January-December) -
                       depends on system setting.
    %DAYSHORTNAME%   = current day as an abbreviation (Sun-Sat) -
                       depends on system setting.
    %DAYLONGNAME%    = current day as a full name (Sunday-Saturday) -
                       depends on system setting.
  Example:
    Updated: %MONTHLONGNAME% %DATE%, %YEAR%
  will be replaced by
    Updated: August 6, 2003

______________________________________

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,149
    • View Profile
    • Donate to Member
Re: IDEA: Time Stamp to Clipboard
« Reply #10 on: October 13, 2005, 11:13 AM »
.

hurricanedavid

  • Participant
  • Joined in 2005
  • *
  • default avatar
  • Posts: 17
    • View Profile
    • Donate to Member
Re: IDEA: Time Stamp to Clipboard
« Reply #11 on: October 13, 2005, 12:01 PM »
I had downloaded the latest stable version of KanaClip and I like it.  I think it will replace my Clipomatic (that I've been using for years).

I was about to note that you can't change the date.  But I saw the recent posting about the beta version and the time and date fomats that are supported.  Woof.  Looks like just what I want. 

And the good part about it is that if it works, I won't be adding another app to my systray, because I'll be removing one!

Thanks guys!

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: IDEA: Time Stamp to Clipboard
« Reply #12 on: October 13, 2005, 06:33 PM »
 :) In the meantime, try this!

TimeStamp - Copies user defined times and dates to the Clipboard.

Features:
- Multiple user defined timestamps.
- Doubleclick the tray icon to copy the last used timstamp.



You'll find the downloads and more info at Skrommel Software.

Skrommel


zridling

  • Friend of the Site
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 3,299
    • View Profile
    • Donate to Member
Re: IDEA: Time Stamp to Clipboard
« Reply #13 on: October 14, 2005, 02:37 AM »
Once again, Skrommel comes to my rescue. Needed an app like this for years for correspondence and telephone conversations. THANKS!

bliss

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 19
  • la la la-la
    • View Profile
    • bLisTeRinG soft
    • Read more about this member.
    • Donate to Member
Re: DONE - IDEA: Time Stamp to Clipboard
« Reply #14 on: March 10, 2006, 10:55 PM »
This isn't exactly the same idea, but somewhat similar:

;;; ClipDate v0.1 bLisTeRinG 2004 ;;;

#Persistent
tmSave = %Clipboard%
tmIni = ClipDate.ini
FileInstall, ClipDate.ini, %A_ScriptDir%\%tmIni%, 0
iniRead, tmClp, %tmIni%, options, iniFile
iniRead, db, %tmIni%, options, debug
Loop, 14
  {
  iniRead, tmM, %tmIni%, menu, menu%a_index%
  iniRead, tmC, %tmIni%, menu, code%a_index%
  If tmM = Error
    {
    Break
    }
    Else
    {
    tmC%a_index% = %tmC%
    Menu, Tray, add, %tmM%, tmGo
    IfEqual, db, yes, MsgBox, iniFile:`t%tmIni%`nmenu:`t%tmM%`nvar:`ttmC%a_index%`ncode:`t%tmC%`ndebug:`t%db%
    }
  }
Menu, Tray, add,
Menu, Tray, add, Clip&Date, tmCD
Menu, Tray, add, Clip&Time, tmCT
Menu, Tray, add, Clip&Both, tmCB
Menu, Tray, add,
Menu, Tray, add, &KeepOpen, tmKeep
IfExist, %tmClp%, Menu, Tray, add, &Clipboard, tmClip
Menu, Tray, add, E&xit, tmExit
Menu, Tray, icon, %a_WinDir%\Clipbrd.exe
Menu, Tray, tip, %Clipboard%
Menu, Tray, default, Clip&Date
Menu, Tray, nostandard
Menu, Tray, show
Return

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; presets
tmCB:
FormatTime, tmT, , h:mm tt
Clipboard = %tmT% %a_dddd% %a_mmmm% %a_dd% %a_yyyy%
Menu, Tray, default, Clip&Both
Goto tmTT

tmCD:
Clipboard = %a_dddd% %a_mmmm% %a_dd% %a_yyyy%
Menu, Tray, default, Clip&Date
Goto tmTT

tmCT:
FormatTime, tmT, , h:mm tt
Clipboard = %tmT%
Menu, Tray, default, Clip&Time
Goto tmTT

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; routines
tmTT:
Tooltip, %Clipboard%
Menu, Tray, Tip, %Clipboard%
SetTimer, tmTTX, 7000
IfEqual, tmKeep, yes, Menu, Tray, show
Return

tmKeep:
If tmKeep = yes
  {
  tmKeep = no
  Menu, Tray, uncheck, &KeepOpen
  }
  Else
  {
  tmKeep = yes
  Menu, Tray, check, &KeepOpen
  }
Menu, Tray, show
Return

tmClip:
Run, %tmClp%
Menu, Tray, show
Return

tmTTX:
SetTimer, tmTTX, Off
ToolTip,
If tmKeep = yes
  {
  Return
  }
Goto tmExit

tmExit:
IfWinExist, Clipboard Viewer
  {
  WinClose,
  }
Clipboard = %tmSave%
ExitApp

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; get settings
tmGo:
;;; Keep the last chosen MenuItem as double-click default.
Menu, Tray, default, %A_ThisMenuItem%

;;; Get Menu# to choose Variable# (tm) & Clear Clipboard.
Transform, tm, deref, `%tmC%a_ThisMenuItemPos%`%
Clipboard =

;;; Split variable(tm) into Array (tmA1...tmAx)
StringSplit, tmA, tm, %A_Space%, `%`,

;;; Get Items from Line (raw:tmB fixed:tmD)
Loop, 10
  {
  tmB = `%tmA%a_index%`%
  Transform, tmD, deref, %tmB%
  IfEqual, tmD, , Break
  tmE = `%%tmD%`%
  tmF =
  Transform, tmF, deref, %tmE%
  ;ToolTip, D:`t%tmD%`nF:`t%tmF%
  ;Sleep, 2000
  If tmF =
    {
    ;msgbox, Table
    If tmD = a_mmmm
      {
      tmF = %a_mmmm%
      }
    If tmD = a_mmm
      {
      tmF = %a_mmm%
      }
    If tmD = a_dddd
      {
      tmF = %a_dddd%
      }
    If tmD = a_ddd
      {
      tmF = %a_ddd%
      }
    If tmD = comma
      {
      tmF = `,%a_space%
      }
    ;ToolTip, Table:`t%tmF%
    ;Sleep, 2000
    Clipboard = %Clipboard%%tmF%
    }
    Else
    {
    Clipboard = %Clipboard% %tmF%
    }
  IfEqual, db, yes, MsgBox, item:`t%a_index%`nB Raw:`t%tmB%`nD Code:`t%tmD%`nE Raw:`t%tmE%`nF String:`t%tmF%`nClip:`t%Clipboard%
  }
tmA1=
tmA2=
tmA3=
tmA4=
tmA5=
tmA6=
tmA7=
tmA8=
tmA9=
tmB=
tmD=
tmE=
tmF=
Goto tmTT



Anyway it might be ok for someone...

gq.
Am we there yet?

springro

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 41
    • View Profile
    • Donate to Member
Re: DONE - IDEA: Time Stamp to Clipboard
« Reply #15 on: March 31, 2006, 07:44 AM »
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

  • Participant
  • Joined in 2007
  • *
  • default avatar
  • Posts: 2
    • View Profile
    • Donate to Member
Re: DONE: Time Stamp to Clipboard
« Reply #16 on: February 22, 2007, 04:48 PM »
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

  • Participant
  • Joined in 2007
  • *
  • default avatar
  • Posts: 2
    • View Profile
    • Donate to Member
Re: DONE: Time Stamp to Clipboard
« Reply #17 on: February 23, 2007, 04:55 AM »
Made a small JavaScript now.