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 7871 Aug 17, 2009, 4:55 PM
Thread Re: [SandraR] ExpiryDate to show current date
Andy 7743 Aug 18, 2009, 12:13 AM
Thread Re: [Andy] ExpiryDate to show current date
SandraR 7749 Aug 18, 2009, 1:26 AM
Thread Re: [SandraR] ExpiryDate to show current date
Andy 7788 Aug 18, 2009, 1:27 AM
Thread Re: [Andy] ExpiryDate to show current date
SandraR 7728 Aug 18, 2009, 1:30 AM
Thread Re: [SandraR] ExpiryDate to show current date
Andy 7770 Aug 18, 2009, 1:35 AM
Thread Re: [Andy] ExpiryDate to show current date
SandraR 7715 Aug 18, 2009, 2:38 AM
Thread Re: [SandraR] ExpiryDate to show current date
Andy 7724 Aug 18, 2009, 2:46 AM
Thread Re: [Andy] ExpiryDate to show current date
SandraR 7717 Aug 18, 2009, 2:53 AM
Post Re: [SandraR] ExpiryDate to show current date
brewt 7616 Aug 19, 2009, 4:27 PM