Campustream 1.0
A social network MQP for WPI
|
Static Public Member Functions | |
static | relative_time ($timestamp) |
Data Fields | |
const | TIME_OFFSET = 0 |
const | ONE_MIN = 60 |
const | TWO_MIN = 120 |
const | ONE_HOUR = 3600 |
const | TWO_HOUR = 7200 |
const | ONE_DAY = 86400 |
const | TWO_DAY = 172800 |
const | DISPLAY_ONE_MIN = 'less than a minute ago' |
const | DISPLAY_TWO_MIN = 'about a minute ago' |
const | DISPLAY_ONE_HOUR = 'about %d minutes ago' |
const | DISPLAY_TWO_HOUR = 'about an hour ago' |
const | DISPLAY_ONE_DAY = 'about %d hours ago' |
const | DISPLAY_TWO_DAY = '1 day ago' |
const | DISPLAY_OTHER = '%d days ago' |
const | DISPLAY_FUTURE_ONE_MIN = 'in a minute' |
const | DISPLAY_FUTURE_TWO_MIN = 'in a few minutes' |
const | DISPLAY_FUTURE_ONE_HOUR = 'in about %d minutes' |
const | DISPLAY_FUTURE_TWO_HOUR = 'in about an hour' |
const | DISPLAY_FUTURE_ONE_DAY = 'in about %d hours' |
const | DISPLAY_FUTURE_TWO_DAY = 'in about 1 day' |
const | DISPLAY_FUTURE_OTHER = 'in %d days' |
static relative_time | ( | $ | timestamp | ) | [static] |
const DISPLAY_FUTURE_ONE_DAY = 'in about %d hours' |
const DISPLAY_FUTURE_ONE_HOUR = 'in about %d minutes' |
const DISPLAY_FUTURE_ONE_MIN = 'in a minute' |
const DISPLAY_FUTURE_OTHER = 'in %d days' |
const DISPLAY_FUTURE_TWO_DAY = 'in about 1 day' |
const DISPLAY_FUTURE_TWO_HOUR = 'in about an hour' |
const DISPLAY_FUTURE_TWO_MIN = 'in a few minutes' |
const DISPLAY_ONE_DAY = 'about %d hours ago' |
const DISPLAY_ONE_HOUR = 'about %d minutes ago' |
const DISPLAY_ONE_MIN = 'less than a minute ago' |
const DISPLAY_OTHER = '%d days ago' |
const DISPLAY_TWO_DAY = '1 day ago' |
const DISPLAY_TWO_HOUR = 'about an hour ago' |
const DISPLAY_TWO_MIN = 'about a minute ago' |
const TIME_OFFSET = 0 |