https://github.com/crayder/time-conversion
stamp to date-time and the inverse.
https://github.com/crayder/time-conversion
include sa-mp
Last synced: 3 days ago
JSON representation
stamp to date-time and the inverse.
- Host: GitHub
- URL: https://github.com/crayder/time-conversion
- Owner: Crayder
- Created: 2015-10-19T06:03:18.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-23T19:02:54.000Z (almost 10 years ago)
- Last Synced: 2025-01-25T04:49:17.802Z (12 months ago)
- Topics: include, sa-mp
- Language: SourcePawn
- Size: 3.91 KB
- Stars: 6
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Time-Conversion
stamp to date-time and the inverse.
### `stamp2datetime`
This was actually taken directly from pawn's source code. It's one of those functions that aren't included in SA-MP's version of pawn. I converted it's internal function to actual pawn code. It hasn't been cleaned up or anything, just converted to a working state. I also added a `gmh` (Greenwich Mean Hour) and `gmm` (Greenwich Mean Minute), both being derivatives of `GMT` (Greenwich Mean Time).
### `datetime2stamp`
Converted from a Python script I found and fitted to `stamp2datetime`'s flavor. This function also has not been cleaned up, I have only converted it to a working state.