[INC] Unix Time
1 Attachment(s)
Unix Time.: Description This include contains two functions that allow you to convert unix time to normal time and vice versa. Unix time on wiki: http://en.wikipedia.org/wiki/Unix_time Timezone info: http://www.epochconverter.com/epoch/timezones.php .: Commands
.: Usage
Comments: This include can be useful for working with timestamps or any task involving time\date manipulation. When using a timezone offset, only use it on a UTC (0 offset) time value. Specifying a timezone on a time value that is already offsetted will provide inaccurate results. .: Example Code PHP Code:
|
Re: [INC] Unix Time Conversion
1 Attachment(s)
I wrote up a header file for AlliedModders time. I hope you like it.
|
Re: [INC] Unix Time Conversion
Quote:
|
Re: [INC] Unix Time Conversion
HAHA Valve like always is right :mrgreen:
|
Re: [INC] Unix Time Conversion
haha nice job chief :wink:
|
Re: [INC] Unix Time Conversion
tyvm for this :mrgreen:, you saved me some work
EDIT: ARGH >_< I found a bug I'm going to try to squash it, here are the details: Code:
new iYear = 0 Code:
UnixToTime:(123456789)->(1973.11.29 21:33:9) The fix: Add the highlighted line. Code:
|
Re: [INC] Unix Time Conversion
When I was coding it I was always using a fresh variable passed only once so I never ran into that bug.
Thanks, I would +k you but I need to spread some out first |
Re: [INC] Unix Time Conversion
Bugsy, awesome!!! I like it, Thanks!
|
Re: [INC] Unix Time Conversion
New revision posted, read description for details.
|
Re: [INC] Unix Time
best!!! :)
thx |
All times are GMT -4. The time now is 02:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.