Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 30052a36d2
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (29 sloc) 1.505 kb
MODULE=calcdate
VERSION=2.1
SOURCE=calcdate.c
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE
SOURCE_URL[0]=http://download.lunar-linux.org/lunar/mirrors/
WEB_SITE=http://download.lunar-linux.org
ENTERED=20020624
UPDATED=20020705
MAINTAINER=csm@moongroup.com
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.
Author: Gordon A. Runkle ORI/Calculon
...uunet!men2a!1solaria!gordon
Updated by Terry Chan <tchan@lunar-linux.org> to use 4 digit years 20020705
EOF
Jump to Line
Something went wrong with that request. Please try again.