Zikula_Template_Plugins
[ class tree: Zikula_Template_Plugins ] [ index: Zikula_Template_Plugins ] [ all elements ]

Procedural File: function.datetime.php

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



Page Details:

Zikula Application Framework



Tags:

version:  $Id: function.datetime.php 24342 2008-06-06 12:03:14Z markwest $
copyright:  (c) 2004, Zikula Development Team
link:  http://www.zikula.org
filesource:  Source Code for this file
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 ]



Documentation generated on Fri, 18 Jul 2008 21:45:13 +0200 by phpDocumentor 1.4.1