From 8fc55f7db5951d4b08e365faf654296c98b207f7 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Fri, 17 Apr 2009 10:05:45 -0500 Subject: [PATCH] added date and time --- bin/date | 20 ++++++++++++++++++++ bin/time | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100755 bin/date create mode 100755 bin/time diff --git a/bin/date b/bin/date new file mode 100755 index 00000000..32cba302 --- /dev/null +++ b/bin/date @@ -0,0 +1,20 @@ +#!/bin/sh -e +# +# date - print the date in YYYY-MM-DD format +# Copyright (C) 2008 Canonical Ltd. +# +# Authors: Dustin Kirkland +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, version 3 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +printf "\005Y-\005m-\005d " diff --git a/bin/time b/bin/time new file mode 100755 index 00000000..85cf8673 --- /dev/null +++ b/bin/time @@ -0,0 +1,20 @@ +#!/bin/sh -e +# +# time - print the time in HH:MM:SS format +# Copyright (C) 2008 Canonical Ltd. +# +# Authors: Dustin Kirkland +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, version 3 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +printf "\0050c:\005s"