Anyone know a way of comparing time_created values?
Say for example I wanted to know/check if 1 object was a week older than another....?
if ($object->time_created < $anotherobject->time_created - 7) {
do something }
?
Just googgle for timestamp comparison
The time is in seconds so you can't just subtract 7.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.