Commit 97ac3c9
authored
Add GET_TIMEZONE_OFFSET_MS command and documentation (#24)
This pull request adds support for retrieving the user's local timezone
offset in milliseconds, enhancing the system time API. It updates both
the documentation and the system command schema to include this new
functionality.
**System time API enhancements:**
* Added a new function `get_timezone_offset_ms` that returns the local
timezone offset from UTC in milliseconds, allowing conversion between
UTC and local time.
[[1]](diffhunk://#diff-c98c3799854bebfd02a5de942634d3fda312171c087368f31b9861f15d84bb43L73-R78)
[[2]](diffhunk://#diff-7e080d651efc694c9ab3c3b1d2681bd66490c3b99bdcd45386c9e08cc06a31cfR135)
**Documentation updates:**
* Updated the system API documentation in `docs/api/system.md` to
describe the new `get_timezone_offset_ms` function and clarified that
`get_date_now` returns milliseconds since the epoch in UTC.
---------
Co-authored-by: io-eric <io-eric@users.noreply.github.com>1 parent 6c782d4 commit 97ac3c9
2 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
| |||
0 commit comments