Es gibt ja die Möglichkeit, die aktuelle Zeit durch die Variable
sich anzeigen zu lassen.Code:$timenow
Gibt es die gleiche Möglichkeit auch für das Datum (ohne die Uhrzeit) ??
Gruss,
Chris.
Es gibt ja die Möglichkeit, die aktuelle Zeit durch die Variable
sich anzeigen zu lassen.Code:$timenow
Gibt es die gleiche Möglichkeit auch für das Datum (ohne die Uhrzeit) ??
Gruss,
Chris.
aka Amasov
(Nein, ich werde mein Board NICHT gegen Gäste sperren!)
------------------------------------------------------------------------------------
Computerprobleme ?
Ist zwar sehr alt das Thema dennoch aktuell!
$timenow = Uhrzeit doch was steht für Datum ??
http://de3.php.net/date
Dadurch siehst du, das du die Variable l brauchst => vbdate('l',TIMENOW,false,false);
// #############################################################################
/**
* 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.
*
* @param string Date format string (same syntax as PHP's date() function)
* @param integer Unix time stamp
* @param boolean If true, attempt to show strings like "Yesterday, 12pm" instead of full date string
* @param boolean If true, and user has a language locale, use strftime() to generate language specific dates
* @param boolean If true, don't adjust time to user's adjusted time .. (think gmdate instead of date!)
* @param boolean If true, uses gmstrftime() and gmdate() instead of strftime() and date()
* @param array If set, use specified info instead of $vbulletin->userinfo
*
* @return string Formatted date string
*/
function vbdate($format, $timestamp = TIMENOW, $doyestoday = false, $locale = true, $adjust = true, $gmdate = false, $userinfo = '')
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
Lesezeichen