Raised This Month: $ Target: $400
 0% 

parse_time crash the server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 03-04-2017 , 18:42   parse_time crash the server
Reply With Quote #1

This crashing the server, WHY?!?
PHP Code:
new unix_timestamp parse_time("Mar""%b"); 
According to wiki, missing information will be filled with current time, so this should return the unix timestamp for current day, year, hour, minute, second and given month.

Last edited by KiLLeR.; 03-04-2017 at 18:42.
KiLLeR. is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 03-06-2017 , 03:06   Re: parse_time crash the server
Reply With Quote #2

What are "Mar" and "%b" supposed to do? Read the documentation again.
PHP Code:
/* Returns time in input and additionaly fills missing information
* with current time and date. If time is different than -1 then parsed
* time is added to given time.
* Example:
* parset_time( "10:32:54 04/02/2003", "%H:%M:%S %m:%d:%Y" )
* For more information see strptime(...) function from C libraries. */
native parse_time(const input[],const format[], time = -1); 
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 03-06-2017 , 11:38   Re: parse_time crash the server
Reply With Quote #3

You need to read it!? ;x
%b - Abbreviated month name - Aug

Last edited by KiLLeR.; 03-06-2017 at 13:06.
KiLLeR. is offline
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 03-08-2017 , 15:14   Re: parse_time crash the server
Reply With Quote #4

bump?!
KiLLeR. is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode