
09-26-2009, 08:04 PM
|
 |
|
|
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
From the API:
Quote:
vbdate (line 3462) Formats a UNIX timestamp into a human-readable string according to vBulletin prefs
Note: Ifvbdate() is called with a date format other than than one in $vbulletin->options[], set $locale to false unless you dynamically set the date() and strftime() formats in the vbdate() call.
- return: Formatted date string
string vbdate (string $format, [integer $timestamp = TIMENOW], [boolean $doyestoday = false], [boolean $locale = true], [boolean $adjust = true], [boolean $gmdate = false], [array $userinfo = ''])
- string $format: Date format string (same syntax as PHP's date() function)
- integer $timestamp: Unix time stamp
- boolean $doyestoday: If true, attempt to show strings like "Yesterday, 12pm" instead of full date string
- boolean $locale: If true, and user has a language locale, use strftime() to generate language specific dates
- boolean $adjust: If true, don't adjust time to user's adjusted time .. (think gmdate instead of date!)
- boolean $gmdate: If true, uses gmstrftime() and gmdate() instead of strftime() and date()
- array $userinfo: If set, use specified info instead of $vbulletin->userinfo
|
|