Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [SandraR] ExpiryDate to show current date

Quote Reply
Re: [SandraR] ExpiryDate to show current date In reply to
Why don't you just check the value of ExpiryDate before converting it?

The constants are in Links.pm
Code:
UNPAID => -1,
UNLIMITED => 0x7fff_fffe,
FREE => 0x7fff_ffff;

If it's greater than $ExpiryDate > UNPAID and $ExpiryDate < UNLIMITED then convert it from a unixtime (GT::Date::date_get($ExpiryDate, 'your format').

Adrian
Subject Author Views Date
Thread ExpiryDate to show current date SandraR 6268 Aug 17, 2009, 4:55 PM
Thread Re: [SandraR] ExpiryDate to show current date
Andy 6165 Aug 18, 2009, 12:13 AM
Thread Re: [Andy] ExpiryDate to show current date
SandraR 6172 Aug 18, 2009, 1:26 AM
Thread Re: [SandraR] ExpiryDate to show current date
Andy 6206 Aug 18, 2009, 1:27 AM
Thread Re: [Andy] ExpiryDate to show current date
SandraR 6151 Aug 18, 2009, 1:30 AM
Thread Re: [SandraR] ExpiryDate to show current date
Andy 6195 Aug 18, 2009, 1:35 AM
Thread Re: [Andy] ExpiryDate to show current date
SandraR 6137 Aug 18, 2009, 2:38 AM
Thread Re: [SandraR] ExpiryDate to show current date
Andy 6146 Aug 18, 2009, 2:46 AM
Thread Re: [Andy] ExpiryDate to show current date
SandraR 6138 Aug 18, 2009, 2:53 AM
Post Re: [SandraR] ExpiryDate to show current date
brewt 6046 Aug 19, 2009, 4:27 PM