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`, 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/47e51565-40b1-4de8-8f98-10f16ff844c4n%40googlegroups.com.

Reply via email to