Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Nov 2001 09:28:49 -0000
From:      "Simon Griffiths" <simon.g@claycrossbs.co.uk>
To:        "Chris Aitken" <chris@ideal.net.au>, <freebsd-questions@FreeBSD.ORG>
Subject:   RE: Epoch Time on Freebsd with perl
Message-ID:  <NEBBJFKEHEOLHKCGOHFOCECMDMAA.simon.g@claycrossbs.co.uk>
In-Reply-To: <5.1.0.14.2.20011119163225.01f5b130@mail.ideal.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi

> [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Chris Aitken
> Sent: 19 November 2001 05:37
> Subject: Epoch Time on Freebsd with perl
>
>
> Hi all,
[snip]
>
> $date1 = "2001-10-01 01:00:00";
> $date2 = "2001-10-01 03:00:00";
>
> What I want is to somehow calculate that there is 2 hours between these 2
> dates (or 120 minutes, or 7200 seconds etc etc)
> Any help on this would be appreciated.

Depending on your database you could do this in SQL, I would recommend
RTFMing its docs.

> Cheers
>
>
> Chris

Si.
--
Simon Griffiths
Systems Administrator - Clay Cross Building Society
Tel:+44(0)1246 862120 - Fax: +44(0)1246 250397
--
"If you give a million monkeys root access to your systems, they
  sure as hell aren't going to be writing any Shakespeare..."



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NEBBJFKEHEOLHKCGOHFOCECMDMAA.simon.g>