fiatjaf on Nostr: now accepts human-readable date inputs to --ts, --since and --until: ~> nak event -ts ...
https://github.com/fiatjaf/nak now accepts human-readable date inputs to --ts, --since and --until:
~> nak event -ts 'two weeks ago' -c 'I bet Trump will dodge a bullet one of these days'
~> nak req -k 1 --since 'a month ago' --until 'July 1st'
Also it will automatically use a private key from NOSTR_PRIVATE_KEY if that is available in your environment, thanks to
cloud fodder (npub10np…tl5h) and
mattn (npub1937…haj6).
Published at
2024-07-23 20:47:44Event JSON
{
"id": "2455093bc6efba2125fb9b8f6e906b6928430a14001c8c32f39ee41a491c2fab",
"pubkey": "3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d",
"created_at": 1721760464,
"kind": 1,
"tags": [
[
"client",
"gossip"
],
[
"p",
"7cc328a08ddb2afdf9f9be77beff4c83489ff979721827d628a542f32a247c0e"
],
[
"p",
"2c7cc62a697ea3a7826521f3fd34f0cb273693cbe5e9310f35449f43622a5cdc"
]
],
"content": "https://github.com/fiatjaf/nak now accepts human-readable date inputs to --ts, --since and --until:\n\n~\u003e nak event -ts 'two weeks ago' -c 'I bet Trump will dodge a bullet one of these days'\n~\u003e nak req -k 1 --since 'a month ago' --until 'July 1st'\n\nAlso it will automatically use a private key from NOSTR_PRIVATE_KEY if that is available in your environment, thanks to nostr:npub10npj3gydmv40m70ehemmal6vsdyfl7tewgvz043g54p0x23y0s8qzztl5h and nostr:npub1937vv2nf06360qn9y8el6d8sevnndy7tuh5nzre4gj05xc32tnwqauhaj6.",
"sig": "bb9454b1bf945e2d40ed3d2afc092a370fe74c180582199c05a18ea0792e09871b755dddf71d061c3796a6469bd00ef7b8f1981c57df6650dd1e987b6380152a"
}