getDatePreferences(); if ( !$prefs ) { $prefs = array( 'default' ); } print "date: "; foreach ( $prefs as $index => $pref ) { if ( $index > 0 ) { print ' | '; } print $lang->date( $ts, false, $pref ); } print "\n$code time: "; foreach ( $prefs as $index => $pref ) { if ( $index > 0 ) { print ' | '; } print $lang->time( $ts, false, $pref ); } print "\n$code both: "; foreach ( $prefs as $index => $pref ) { if ( $index > 0 ) { print ' | '; } print $lang->timeanddate( $ts, false, $pref ); } print "\n\n"; } ?>