This sort of thing was left out because LiveJournal doesn't know the timezone of the person viewing a given page and so it doesn't actually know what "today" is.
As kunzite1 pointed out, you can get the GMT time that the page was rendered, but there's not really any easy way to do date arithmetic to produce an "n minutes ago" readout. The Comment class has a member from which you can get the number of seconds since the associated entry was posted, but that's a special case that the system calculates for you.
Comments 2
there are no system-supplied functions that make addition and subtraction of DateTimes easy.
Reply
This sort of thing was left out because LiveJournal doesn't know the timezone of the person viewing a given page and so it doesn't actually know what "today" is.
As kunzite1 pointed out, you can get the GMT time that the page was rendered, but there's not really any easy way to do date arithmetic to produce an "n minutes ago" readout. The Comment class has a member from which you can get the number of seconds since the associated entry was posted, but that's a special case that the system calculates for you.
Reply
Leave a comment