Unclassified NewsBoard Code Reference

UnbFormatTime function

Format a date/timestamp

function UnbFormatTime ($date = null, $opt = 1, $sep = ', ', $tz_done = false);

Parameters:

opt  –  optional, default: 1
(int) 1: date, 2: time, 4: seconds, 8: weekday
sep  –  optional, default: '
(string) separator between date and time
tz_done  –  optional, default: false
(bool) true: timezone offset is already considered, false: timezone will be converted
date  –  optional, default: null

Return value:

(string) formatted date/time

Implementation file: unb_lib/common.lib.php, line 2421

© 2006 Yves Goergen. Unclassified NewsBoard Homepage. Reference based on UNB unb.devel.20060128, dated 2006-01-28.