Welcome, Guest. Please Login or Register.
August 28, 2025, 06:44:53 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  Lose the seconds!! « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Lose the seconds!!  (Read 351 times)
luisr
Full Member
***
Posts: 120


Left blank to save space.

Lose the seconds!!
« on: April 10, 2002, 12:08:16 AM »
Reply with quote

I don't want to show seconds in the times displayed by my board.  Neither I want the leading 0 from the hour.  How do I do that?
Logged
The Engineer
Sr. Member
****
Posts: 313


I'm the Dude, man!

ICQ - 156273462 WWW
Re:Lose the seconds!!
« Reply #1 on: April 10, 2002, 12:25:45 AM »
Reply with quote

Quote from: luisr on April 10, 2002, 12:08:16 AMI don't want to show seconds in the times displayed by my board.  Neither I want the leading 0 from the hour.  How do I do that?

Try using
%a %b %d %Y at %I:%M %p
it will give you...

Tue Apr 09 2002 at 05:20 PM

I don't see how you can lose the zero on the hour.

For more options click the question mark next to where you input the time format in Forum Settings.

* The Engineer .
Logged

Who is the more foolish.. The fool or the fool who follows it...
Help cure Cancer, Join the YaBB SE UD Team !
luisr
Full Member
***
Posts: 120


Left blank to save space.

Re:Lose the seconds!!
« Reply #2 on: April 10, 2002, 01:06:49 AM »
Reply with quote

That worked.  Thank you.  But I still got that darn leading zero.  If someone has any suggestion, please...
Logged
The Engineer
Sr. Member
****
Posts: 313


I'm the Dude, man!

ICQ - 156273462 WWW
Re:Lose the seconds!!
« Reply #3 on: April 10, 2002, 01:09:31 AM »
Reply with quote

Quote from: luisr on April 10, 2002, 01:06:49 AMThat worked.  Thank you.  But I still got that darn leading zero.  If someone has any suggestion, please...

Look here http://www.php.net/manual/en/function.strftime.php

It shows all the options that work with "strftime"

which is the PHP function that parses the time and date

* The Engineer .
Logged

Who is the more foolish.. The fool or the fool who follows it...
Help cure Cancer, Join the YaBB SE UD Team !
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Lose the seconds!! « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.030 seconds with 16 queries.