![]() |
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? |
Hmm...I think I just realized how to split apart the string.
PHP Code:
That just leaves converting the numbers into vB's format... |
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...
|
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. |
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 ;)
|
All times are GMT. The time now is 08:31 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|