1PDD(1)                           User Commands                          PDD(1)
2
3
4

NAME

6       pdd - Tiny date, time difference calculator with timers.
7

SYNOPSIS

9       pdd [OPTIONS] [KEYWORDS ...]
10

DESCRIPTION

12       pdd  (python3  date diff) is a small utility to calculate date and time
13       difference. It can also be used as a timer. If no program arguments are
14       specified it shows the current date, time and timezone.
15
16       Features
17
18       - easy to use, minimal dependencies
19       - calculate date and time difference
20       - add, subtract duration (timeslice) to/from date (time)
21       - calculate diff from today and now
22       - countdown timer with command piggybacking
23       - custom resolution stopwatch
24       - non-verbose mode for background timers
25       - show current date, time and timezone
26
27       Operational notes
28
29       -  ISO  8601 format. Month can be specified as month number (e.g. Jan -
30       1, Dec - 12).
31       - Time is in 24-hr format.
32       - The absolute difference is shown. Argument order is ignored.
33       - The end date is excluded in date difference calculations.
34       - Hour, minute or second can be omitted. Partial inputs are  recognized
35       as mm:ss or ss.
36       - The keybind to stop timers is Ctrl-C.
37

OPTIONS

39       -h, --help
40              Show help text and exit.
41
42       -d yyyy mmm dd [yyyy mmm dd | y m d]
43              Calculate date difference.
44
45       -t hh:mm:ss [hh:mm:ss | h:m:s]
46              Calculate time difference.
47
48       --add  Add a duration or timeslice to date (/today) or time (/now).
49
50       --sub  Subtract  a  duration  or  timeslice  from date (/today) or time
51              (/now).
52
53       --day yyyy mmm dd
54              Show the day of the week on a date.
55
56       -c hh:mm:ss
57              Set a countdown timer with duration in hours, minutes  and  sec‐
58              onds.
59
60       -r command
61              Run command when countdown timer reaches 0.
62
63       -s [resolution]
64              Start a custom resolution stopwatch. resolution can range from 1
65              to 9. Default 3 for millisecond.
66
67       -q     Quiet mode for a countdown timer or stopwatch to be run  in  the
68              background. The counter is shown only when Ctrl-C is pressed.
69

EXAMPLES

71       1.  Calculate diff from today:
72
73              $ pdd 2014 Jan 15
74
75       2.  Calculate diff from now:
76
77              $ pdd 24:00:00
78              $ pdd 0
79
80       3.  Calculate date diff:
81
82              $ pdd -d 1983 jul 3 2014 1 15
83
84       4.  Calculate time diff:
85
86              $ pdd -t 45:50 6:17:33
87
88       5.  Show current date, time and timezone:
89
90              $ pdd
91
92       6.  Specify time with roll-over:
93
94              $ pdd -t 5:80:75 6:17:33
95
96       7.  Add a duration (3 years, 2 months, 1 day) to 28 Feb, 2000:
97
98              $ pdd -d 2000 FEB 28 3 2 1 --add
99
100       8.  Add a timeslice (1 hour 2 mins 3 secs) to 23:45:37:
101
102              $ pdd -t 23:45:37 1:2:3 --add
103
104       9.  Add a duration (3 years, 2 months, 1 day) to today:
105
106              $ pdd 3 2 1 --add
107
108       10. Add a timeslice (1 hour 2 minutes 3 seconds) to now:
109
110              $ pdd 1:2:3 --add
111
112       11. Subtract a duration (1 day) from 1 Mar, 2000:
113
114              $ pdd -d 2000 Mar 01 0 0 1 --sub
115
116       12. Subtract a timeslice (1 sec) from midnight:
117
118              $ pdd -t 00:00:00 0:0:1 --sub
119
120       13. Subtract a duration (3 years, 2 months, 1 day) from today:
121
122              $ pdd 3 2 1 --sub
123
124       14. Subtract a timeslice (1 hour 2 minutes 3 seconds) from now:
125
126              $ pdd 1:2:3 --sub
127
128       15. Show the day of the week on 15 Jan 2014:
129
130              $ pdd --day 2014 Jan 15
131
132       16. Start  a  countdown  timer  or stopwatch in quiet mode in the back‐
133           ground:
134
135              $ pdd -qs &
136              $ pdd -qc 3:0:0 &
137
138           To see the final counter run fg and press Ctrl-C.
139
140       17. Run a command when countdown timer reaches 0:
141
142              $ pdd -c 00:00:5 -r 'ps -aux'
143              $ pdd -c 00:00:5 -r 'notify-send pdd expired'
144

AUTHORS

146       Arun Prakash Jana <engineerarun@gmail.com>
147

HOME

149       https://github.com/jarun/pdd
150

REPORTING BUGS

152       https://github.com/jarun/pdd/issues
153

LICENSE

155       Copyright © 2017 Arun Prakash Jana <engineerarun@gmail.com>
156
157       License     GPLv3+:     GNU     GPL     version     3     or      later
158       <http://gnu.org/licenses/gpl.html>.
159       This  is  free  software:  you  are free to change and redistribute it.
160       There is NO WARRANTY, to the extent permitted by law.
161
162
163
164Version 1.4                       04 Apr 2019                           PDD(1)
Impressum