Get started with PHP-Fusion

Start a New Thread

Users Participated

  • HobbyMan
    Post made: 1
  • NetriX
    Post made: 1
  • PolarFox
    Post made: 1
  • PHPar
    Post made: 1

  1. PHP-Fusion Support Forums
  2. PHP-Fusion 7 Support
  3. System Administration

[GUIDE] PHP-Fusion Change Date/Time Format - Sticky

All questions about the system management and it's settings

3 Replies 8,296 Views Last Updated on 4 years ago

NetriX


Admin

#1

Posted 4 years ago

The PHP-Fusion admin panel limits time displays with the drop-down menu. There are so many different variables to place to change the way your date/time looks.

Below is a list, if you need help just ask.

Day
  • %a weekday, abbreviated Thu
  • %A weekday, full Thursday
  • %d day of the month (dd), zero padded 10
  • %e day of the month (dd) 10
  • %j day of year, zero padded 001-366
  • %u day of week starting with Monday (1), i.e. mtwtfss 4
  • %w day of week starting with Sunday (0), i.e. smtwtfs 4

Week
  • %U week number Sunday as first day of week 0153
  • %W week number Monday as first day of week 0153
  • %V week of the year 0153

Month
  • %m mm month 03
  • %h Mon Mar
  • %b Mon, locale's abbreviated Mar
  • %B locale's full month, variable length March

Year
  • %y yy two digit year 0099
  • %Y ccyy year 2011
  • %g 2-digit year corresponding to the %V week number
  • %G 4-digit year corresponding to the %V week number

Century
  • %C cc century 0099

Date
  • %D mm/dd/yy 03/10/11
  • %x locale's date representation (mm/dd/yy) 03/10/2011
  • %F %Y-%m-%d 2011-03-10

Hours
  • %l (Lowercase L) hour (12 hour clock) 1
  • %I (Uppercase I) hour (12 hour clock) zero padded 01
  • %k hour (24 hour clock) 13
  • %H hour (24 hour clock) zero padded 13
  • %p locale's upper case AM or PM (blank in many locales) PM
  • %P locale's lower case am or pm pm

Minutes
  • %M MM minutes 26

Seconds
  • %s seconds since 00:00:00 1970-01-01 UTC (Unix epoch) 1299763592
  • %S SS second 0060
  • (The 60 is necessary to accommodate a leap second)
  • %N nanoseconds 000000000999999999

Time
  • %r hours, minutes, seconds (12-hour clock) 01:26:32 PM
  • %R hours, minutes (24 hour clock) hh:mm e.g. 13:26
  • %T hours, minutes, seconds (24-hour clock) 13:26:32
  • %X locale's time representation (%H:%M:%S)



________________________________________________________

Currently Used at PHPFusionMods.com

Long Date: %B %d, %Y %I:%M %p > March 01, 2011 09:30 PM
Edited by NetriX on 10-03-2011 18:09
------------------------------------------------------------------------------------------------------------------------------------------------------------
PHP-Fusion Developer :: PHPFusionMods.org Development :: PHP-Fusion Administrator / Support
------------------------------------------------------------------------------------------------------------------------------------------------------------
Name: Brandon :: Age: 26 :: Location: Chattanooga, TN

Posts: 479

Joined: 22/09/2007

HobbyMan


Admin

#2

Posted 4 years ago

Nice - stickied
Just some Guy

Posts: 1488

Joined: 24/03/2007

PolarFox


Admin

#3

Posts: 1641

Joined: 26/08/2008

PHPar


Admin

#4

Posted 4 years ago

nice good information

Posts: 92

Joined: 03/03/2010

Jump to Forum:
14 users are online
0 member and 14 guests