forked from lunar-linux/moonbase-other
/
DETAILS
35 lines (27 loc) · 1.4 KB
/
DETAILS
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
33
34
35
MODULE=calcdate
VERSION=2.1
SOURCE=calcdate.c
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE
SOURCE_URL=http://download.lunar-linux.org/lunar/mirrors/
SOURCE_VFY=sha256:81c386a0bab20f558d65eab18d028091573518d3010b2ef3046c9ece5be39843
WEB_SITE=http://download.lunar-linux.org
ENTERED=20020624
UPDATED=20020705
SHORT="A simple utility to help you calculate dates while scripting"
cat << EOF
Calcdate is a simple utility to help you calculate dates while scripting.
Program: calcdate
Synopsis: calcdate yyyymmdd { -o [-]offset | -d yyyymmdd }
Purpose: Calculate the target date when given an initial date and an
offset in days, or the difference between two dates when
given two dates.
Options: There are two options as listed below. One or the other must
be entered.
-o [-]offset Allows the user to enter an offset (in days)
and returns the initial date plus the offset.
Negative offsets are permitted.
-d yyyymmdd Allows the user to enter a second date, and
returns the difference between the two dates
relative to the first date.
Updated by Terry Chan <tchan@lunar-linux.org> to use 4 digit years 20020705
EOF