PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Aktuelles Datum?



Chris
26.08.2001, 16:23
Es gibt ja die Möglichkeit, die aktuelle Zeit durch die Variable



$timenow


sich anzeigen zu lassen.


Gibt es die gleiche Möglichkeit auch für das Datum (ohne die Uhrzeit) ??

Gruss,
Chris.

Tyran
11.01.2009, 22:07
Ist zwar sehr alt das Thema dennoch aktuell!

$timenow = Uhrzeit doch was steht für Datum ??

ragtek
11.01.2009, 22:18
$datenow

Tyran
11.01.2009, 22:28
$datenow

:rolleyes: hätte ja selbst drauf kommen können danke ;)

weiß du eventuell den code vom Wochentag?

ragtek
11.01.2009, 23:39
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 = '')

Tyran
11.01.2009, 23:44
http://de3.php.net/date
Dadurch siehst du, das du die Variable l brauchst => vbdate('l',TIMENOW,false,false);

Danke !!