I saw your post here https://talk.tiddlywiki.org/t/tw5-clipboard-hook-convert-dates-into-tiddlywiki-format/1550?u=mohammad Join us https://talk.tiddlywiki.org (the new TW forum)
I like your solution and I see potential to do more! On Monday, November 15, 2021 at 9:28:27 AM UTC+3:30 thor...@gmail.com wrote: > TiddlyWiki has it's own format for representing dates for `created` and > `modified` fields. To be consistent, I wanted to use this date format for > other fields, but didn't feel like manually converting them myself. > > So I wrote a Python script and uploaded it for others to try :): > https://github.com/cr1901/tw-timestamp > > To install, `git clone https://github.com/cr1901/tw-timestamp` > <https://github.com/cr1901/tw-timestamp>, and then use `pip install .` or > `pip install -e .` (if you want to hack on it) to add a `tw-timestamp` > command to your path. I will upload a package to PyPI soon enough, but I'd > like people to test-drive this first to flush out any problems. > > An example session looks like this, for instance, when I copy the text > "11/12/2021, 4:35 PM" to the clipboard. This gets converted to > "20211112213500000" (notice that the time is UTC), and will be pasted as > such when the user pastes: > > ``` > $ tw-timestamp -t US/Eastern > TW date conversion active > 11/12/2021, 4:35 PM => 20211112213500000 > TW date conversion disabled > ``` > > I hope other people find this useful. > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/cd5152e8-b6ee-461d-b6ee-a0f90f266476n%40googlegroups.com.