diff options
Diffstat (limited to 'docs/01_general.rst')
-rw-r--r-- | docs/01_general.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/01_general.rst b/docs/01_general.rst index 556cd63..012a37a 100644 --- a/docs/01_general.rst +++ b/docs/01_general.rst | |||
@@ -123,6 +123,16 @@ you can also just write | |||
123 | 123 | ||
124 | and everything will work as intended. | 124 | and everything will work as intended. |
125 | 125 | ||
126 | Snowflake IDs | ||
127 | ~~~~~~~~~~~~~ | ||
128 | Some IDs in Mastodon (such as those for statuses) are Snowflake IDs. These broadly | ||
129 | correspond to times, with a low resolution, so it is possible to convert a time to | ||
130 | a Snowflake ID and search for posts between two dates. Mastodon.py will do the | ||
131 | conversion for you automatically when you pass a `datetime` object as the id. | ||
132 | |||
133 | Note that this functionality will *not* work on anything but Mastodon and forks, | ||
134 | and that it is somewhat inexact due to the relatively low resolution. | ||
135 | |||
126 | Versioning | 136 | Versioning |
127 | ---------- | 137 | ---------- |
128 | Mastodon.py will check if a certain endpoint is available before doing API | 138 | Mastodon.py will check if a certain endpoint is available before doing API |