1
HTML & templates / Unix time
« on: March 01, 2009, 11:37:16 AM »
I am playing around with a template idea and I am after a way to check two time values to see whether or not something has timed out.
The only way I can think of doing it is with Unix(seconds since 1970) time and taking the original value from the new value and comparing the difference to a predefined timeout value.
Is it possible to have unix time added to the time macro? or perhaps a template symbol for it?
Also after some research into the time macro I have come across the symbol %now% but cant find any explanation. What does it do/what is it for?
The only way I can think of doing it is with Unix(seconds since 1970) time and taking the original value from the new value and comparing the difference to a predefined timeout value.
Is it possible to have unix time added to the time macro? or perhaps a template symbol for it?
Also after some research into the time macro I have come across the symbol %now% but cant find any explanation. What does it do/what is it for?