blob: fe28c5216618d5cf2f83d5590db86038a2632d4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# distamp
Creates discord format relative timestamps, i.e.: `<t:1725834045:R>`
## Usage
./distamp: discord relative timestamp generator
Usage: ./distamp [-hv] [-a <date>] [-d <days>] [-w <weeks>] m[:s]
-h: print this help text
-a <date>: Absolute date (this option is exclusive, any other options will be ignored)
-d <days>: Number of days
-w <weeks>: Number of weeks
-v: Print version
Where m is number of minutes from now and s is number of seconds from now
## Config
A DOS-style INI format configuration can be created at XDG\_CONFIG\_HOME/distamp/config.ini. Quoted values are not supported.
The current supported keys are:
tz: the value must be a valid timezone (i.e. tz=Europe/Paris). This is used to calculate the proper locality of the date when using the -a flag.
## Build
To build, install hare and run:
$ hare build distamp.ha
|