Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows 10 paste timestamp anywhere

I´d like to have a shortcut to place a timestamp at any program that I use in Windows 10. I didn't found any native resource for that.

I wonder if I could write some macro or script or some basic function that returns a timestamp, invoked by a shortcut, regardless of the current task that I´m working.

like image 349
Tomás Avatar asked Apr 09 '26 04:04

Tomás


1 Answers

You can do it with powershell. Create a shortcut with this command line:

powershell.exe -c "Get-Date | Set-Clipboard"

Each time you start the shortcut, the clipboard will get a new timestamp.

like image 89
hsmiths Avatar answered Apr 11 '26 21:04

hsmiths



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!