-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new functions to handle date formats
- Loading branch information
1 parent
33c1813
commit 78b0020
Showing
3 changed files
with
120 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
/** | ||
* timeutils version 1.1.0 by Manuel Schnitzer | ||
* timeutils version 2.0.0 by Manuel Schnitzer | ||
* | ||
* https://github.com/mschnitzer/time | ||
*/ | ||
|
||
native time_convert(timestamp, format[], out[], out_len); | ||
native datetime(out[], out_len); | ||
native timestamp_to_datetime(timestamp, out[], out_len); | ||
native time_convert(timestamp, format[], out[], out_len = sizeof(out)); | ||
|
||
// datetime functions | ||
native datetime(out[], out_len = sizeof(out)); | ||
native timestamp_to_datetime(timestamp, out[], out_len = sizeof(out)); | ||
native datetime_to_timestamp(datetime[]); | ||
|
||
// date functions | ||
native date(out[], out_len = sizeof(out)); | ||
native datetime_to_date(datetime[], out[], out_len = sizeof(out)); | ||
native date_to_datetime(date[], out[], out_len = sizeof(out)); | ||
native date_to_timestamp(date[]); | ||
native timestamp_to_date(timestamp, out[], out_len = sizeof(out)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#pragma once | ||
|
||
#define PLUGIN_VERSION "1.1.0" | ||
#define PLUGIN_VERSION "2.0.0" |