Zikula: A Flexible Open Source Content Management System
home | forum | international support | contact us

Docs for page function.datetime.php

Procedural File: function.datetime.php

Source Location: /Theme/plugins/function.datetime.php

Classes:



Page Details:

Zikula Application Framework



Tags:

version:  $Id: function.datetime.php 24383 2008-06-12 14:15:02Z markwest $
copyright:  (c) 2004, Zikula Development Team
link:  http://www.zikula.org
license:  GNU/GPL








smarty_function_datetime [line 57]

string smarty_function_datetime( array $params, object &$smarty, string 2)

Smarty function to display the current date and time

Example <!--[datetime]-->

<!--[datetime format="_DATEBRIEF"]-->

<!--[datetime format='%b %d, %Y - %I:%M %p']-->

Format: _DATEBRIEF '%b %d, %Y' _DATELONG '%A, %B %d, %Y' _DATESTRING '%A, %B %d @ %H:%M:%S' _DATETIMEBRIEF '%b %d, %Y - %I:%M %p' _DATETIMELONG '%A, %B %d, %Y - %I:%M %p'

Key: %a - abbreviated weekday name according to the current locale %A = full weekday name according to the current locale %b = abbreviated month name according to the current locale %B = full month name according to the current locale %d = day of the month as a decimal number (range 01 to 31) %D = same as %m/%d/%y %y = year as a decimal number including the century %Y = year as a decimal number without a century (range 00 to 99) %H = hour as a decimal number using a 24-hour clock (range 00 to 23) %I = hour as a decimal number using a 12-hour clock (range 01 to 12) %M = minute as a decimal number %S = second as a decimal number %p = either 'am' or 'pm' according to the given time value, or the corresponding strings for the current locale ml_ftime function is defined in modules/NS-languages/api.php in PN 0.7x and in includes/pnLang.php line 450 in PN 0.8 http://www.php.net/manual/en/function.strftime.php




Tags:

return:  current date and time
author:  Mark West & Martin Andersen
see:  function.datetime.php::smarty_function_datetime()
since:  19/10/2003


Parameters

array   $params   All attributes passed to this function from the template
object   &$smarty   Reference to the Smarty object
string   2   format Date and time format
[ Top ]


Packages:

Files:

Classes: