Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

RE: [mv] Unix time -> normal date



******    message to minivend-users from =?iso-8859-1?Q?Ren=E9_Hertell?= <rene@hertell.com>     ******

Hi Ed,

Your solution gives me just the current date and time. What I'm looking for
is to calculate a future date... The [tag time] cannot handle this.

If I use [tag time][calc]%s+(24*60*60*14)[/calc][/tag] I get a future time,
in Unix-time (epoch).
After this I have to convert this back to normal time, so that I can print
on a order-form a due-date.

If you have I Linux-box, copy & paste this, and you see what I mean:
--- snip ---
date -d '1970-01-01 962383565 sec' +"%d-%m-%Y %T"
--- snip ---


René


-----Original Message-----
From: owner-minivend-users@minivend.com
[mailto:owner-minivend-users@minivend.com]On Behalf Of Ed LaFrance
Sent: 16 June 2000 18:19
To: minivend-users@minivend.com
Subject: Re: [mv] Unix time -> normal date


******    message to minivend-users from Ed LaFrance <edl@newmediaems.com>
******

At 08:52 AM 6/16/00 +0300, you wrote:
>******    message to minivend-users from =?iso-8859-1?Q?Ren=E9_Hertell?=
><rene@hertell.com>     ******
>
>Does anyone know how to convert the unix-time to normal time?
>
>Or is there an other way to calculate a date in a style like
>[calc]locatime + 14[/calc]

Try [tag time]

[tag time]%Y %m %d %H %M[/tag]

- Ed L.


-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: