hluk / copyq-commands

Useful commands for CopyQ clipboard manager.
328 stars 72 forks source link

[Request] Date stamp #81

Closed kayanco closed 9 months ago

kayanco commented 9 months ago

Hi hluk,

Is it possible to capture a date and time stamp for each clipboard entry?

Thanks.

m4r71n commented 9 months ago

It is already possible. Take a look at https://github.com/hluk/copyq-commands/tree/master/Automatic and Store Copy Time

kayanco commented 8 months ago

It is already possible. Take a look at https://github.com/hluk/copyq-commands/tree/master/Automatic and Store Copy Time

Hi, any way to change the time to AM/PM please :)

hluk commented 8 months ago

It is already possible. Take a look at https://github.com/hluk/copyq-commands/tree/master/Automatic and Store Copy Time

Hi, any way to change the time to AM/PM please :)

Add AP to the date/time string in the command:

var time = dateString('yyyy-MM-dd hh:mm:ss AP')

For details about the format, see: https://doc.qt.io/qt-5/qdatetime.html#toString-2

kayanco commented 8 months ago

THANK YOU!

I'm really grateful 🥇

It is already possible. Take a look at https://github.com/hluk/copyq-commands/tree/master/Automatic and Store Copy Time

Hi, any way to change the time to AM/PM please :)

Add AP to the date/time string in the command:

var time = dateString('yyyy-MM-dd hh:mm:ss AP')

For details about the format, see: https://doc.qt.io/qt-5/qdatetime.html#toString-2