Re: SendMail - pwAdmin Plugin
Quote:
Originally Posted by
das7002
Thank you much! I have learned that, in short, this time is the number of seconds that have elapsed since 01/01/1970 00:00:00 UTC :lol:
Now, in order to set this variable you can get the current time in this format in your linux environment by typing "date +%s" then you would add the number of seconds until you want your item to expire... Example; if you wanted the item to expire in 7 days ~ 7 days = 604800 seconds. You would take your current time (by using "date +%s") and add 604800 to it.
Ex: my current time check reveals that right now it is "1281651560" add 604800 we get 1282256360. So if I set "1282256360" to an expire_date var field that item would expire at the exact time below (in exactly 7 days to the second):
GMT: Thu, 19 Aug 2010 22:19:20 GMT
UTC -0600(CST): Thursday, August 19, 2010 5:19:20 PM