date time functions

Discussion of general topics related to the new version and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Forum rules
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Post Reply
president
Registered User
Posts: 52
Joined: Wed Mar 05, 2003 11:06 pm

date time functions

Post by president »

I was wondering if anyone would be able to give me a rough guideline of the phpBB 2.1.x datetime functions so far.

which files contain them?

and what date/time variables are used etc...

psoTFX wrote: I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"
dhn wrote: You are the admin, learn how to use phpBB 3.0 and you can do exactly that what you want. Satisfy your users.

User avatar
dhn
Registered User
Posts: 1518
Joined: Wed Jul 04, 2001 8:10 am
Location: Around the corner
Contact:

Re: date time functions

Post by dhn »

http://www.php.net/date" target="_blank
Image

president
Registered User
Posts: 52
Joined: Wed Mar 05, 2003 11:06 pm

Re: date time functions

Post by president »

Does this mean you have made no custom functions?

If so... Excellent :)

Once I know, I'm happy ;)
psoTFX wrote: I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"
dhn wrote: You are the admin, learn how to use phpBB 3.0 and you can do exactly that what you want. Satisfy your users.

User avatar
dhn
Registered User
Posts: 1518
Joined: Wed Jul 04, 2001 8:10 am
Location: Around the corner
Contact:

Re: date time functions

Post by dhn »

The only custom thing is that you can choose via the [] brackets if you want the relative "Today", "Yesterday" timestamps for the last two days or just keep the normal timestamp for those days also.
Image

User avatar
SHS`
Registered User
Posts: 1628
Joined: Wed Jul 04, 2001 9:13 am
Location: The Boonies, Hong Kong
Contact:

Re: date time functions

Post by SHS` »

dhn wrote:The only custom thing is that you can choose via the [] brackets if you want the relative "Today", "Yesterday" timestamps for the last two days or just keep the normal timestamp for those days also.
( '[' || ']' ) != '|'

:P
Jonathan “SHS`” Stanley • 史德信
phpBB™ 3.1.x, Bug/Security trackers
phpBB™ Bertie Bear 3.0 — prosilver Edition!Asking Questions The Smart Way

User avatar
upsTex
Registered User
Posts: 95
Joined: Thu Apr 22, 2004 11:58 pm
Location: The Netherlands

Re: date time functions

Post by upsTex »

Code: Select all

preg_match( "/^[-^!#$%&'*+\/=?`{|}~.\w]+@" . 
                   "[a-zA-Z0-9]([-a-zA-Z0-9]*[a-zA-Z0-9])*" . 
                   "(\.[a-zA-Z0-9]([-a-zA-Z0-9]*[a-zA-Z0-9])*)+$/", $email )
:P
- upsTex

Post Reply