Hi,
In using $(an elgg object)->time_created or for better example,
$object_created = date("G:H j/m-Y", $object->time_created) ;
I get the time (at server side i believe coz it doesn't match my local time) and the day, month year the object is created. This is okay.
Is it possible to just get the month and year? like April 2011 ? I couldn't find much of the time_created call or the date.php output..... any insight ?
Thanks in advance ;D
Jimbo
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.
- DhrupDeScoop@Dhrup2000

DhrupDeScoop - 0 likes
- James@feel_sickened

James - 0 likes
- James@feel_sickened

James - 0 likes
- Team Webgalli@webgalli

Team Webgalli - 0 likes
About 11,100,000 results (0.16 seconds)
- Cash@costelloc

Cash - 0 likes
You must log in to post replies.strftime("%B %Y",$object_created);
Thanks Dhrup ( what about your clients ? ;P ;P ;P )
strftime("%B %Y",$object->time_created); worked for me....
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.