Nwatimeformat Modifier; Table 42 Date And Time Formats - Aruba Networks PowerConnect W Clearpass 100 Software Deployment Manual

3.9 deployment guide
Hide thumbs Also See for PowerConnect W Clearpass 100 Software:
Table of Contents

Advertisement

The full list of special formats is:

Table 42 Date and Time Formats

Preset Name
hhmmss
hh:mm:ss
iso8601
iso8601t
iso-8601
iso-8601t
longdate
rfc822
displaytime
recent
The % items on the right hand side are the same as those supported by the php function strftime().
The string "?:", if present will return the string following the "?:" if the time value is 0. Otherwise, the format
string up to the "?:" is used.
See
"Date/Time Format String Reference"
format string arguments.
Examples of date formatting using the nwadateformat Smarty modifier are as follows:
{$u.expire_time|nwadateformat:"longdate"}
Monday, 07 April 2008, 2:13 PM
{$u.expire_time|nwadateformat:"iso8601"}
20080407
{$u.expire_time|nwadateformat:"iso-8601t"}
2008-04-07 14:13:45
{$u.expire_time|nwadateformat:"iso8601?:N/A"}
20080407   (or N/A if no time specified)
{$u.expire_time|nwadateformat:"%m/%d/%Y"}
04/07/2008

nwatimeformat Modifier

The nwatimeformat modifier takes one argument – the format description. The "minutes_to_natural"
argument converts an argument specified in minutes to a text string describing an equivalent but more
natural measurement for the time interval (hours, days or minutes depending on the value). An example of
this usage is for the expire_postlogin field which has a value measured in minutes:
{$u.expire_postlogin|nwatimeformat:"minutes_to_natural"}
The other formats accepted for this modifier are the same as those described for the nwadateformat
modifier. See
ClearPass Guest 3.9 | Deployment Guide
Date/Time Format
%H%M%S
%H:%M:%S
%Y%m%d
%Y%m%d%H%M%S
%Y-%m-%d
%Y-%m-%d %H:%M:%S
%A, %d %B %Y, %I:%M %p
%a, %d %b %Y %H:%M:%S %Z
%I:%M %p
"nwadateformat Modifier"
Example
141345
14:13:45
20080407
20080407141345
2008-04-07
2008-04-07 14:13:45
Monday, 07 April 2008, 2:13 PM
Mon, 07 Apr 2008 14:13:45 EST
2:13 PM
2 minutes ago
in this chapter for a full list of the supported date/time
in this chapter.
Reference |
455

Advertisement

Table of Contents
loading

This manual is also suitable for:

Clearpass guest 3.9

Table of Contents