The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Suppose you have this string: 200754
The first two digits are today's day of the month (as in Feb. 20). The next two digits are the hour of the day in 24-hour format, and the final two digits are the minutes of the hour (the time in that string is 07:54). The time zone will always be GMT for the string. How can this be converted to vBulletin's date/time format, which is something like "1014047921". BTW, is Zulu or UTC the same time as GMT? |
#2
|
||||
|
||||
Hmm...I think I just realized how to split apart the string.
PHP Code:
That just leaves converting the numbers into vB's format... |
#3
|
||||
|
||||
You can't do what you are trying to do, because your string misses the year and month indications. And since vBulletin uses the Unix timestamp, you must have those...
|
#4
|
||||
|
||||
Sorry, I forgot to explain more.
The month and year should be assumed to be the present. The time format 200754Z is part of a report that gets published about every hour or so. So it is conceivable that someone just after midnight of the last day of the month could be looking at a report that is from last month. There will need to be some code that checks for that kind of thing. |
#5
|
||||
|
||||
JJR512, I can't help you with your PHP problems, but I can tell you that GMT, Zulu, and UTC are all the same time
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|