Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Post Freshness


James
Participant

@janismo

@Roger Coathup
hi,

found information below, but still can not achieve any result. Maybe you could write necessary php code for me?
thank you!!

bp_core_time_since( $older_date, $newer_date = false ) X-Ref
bp_core_time_since()

Based on function created by Dunstan Orchard – http://1976design.com

This function will return an English representation of the time elapsed
since a given date.
eg: 2 hours and 50 minutes
eg: 4 days
eg: 4 weeks and 6 days

param: $older_date int Unix timestamp of date you want to calculate the time since for
param: $newer_date int Unix timestamp of date to compare older date to. Default false (current time).
return: str The time since.

Skip to toolbar