- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 32 for timedelta (0.13 sec)
-
.github/actions/people/app/main.py
one_year_commenters = Counter() authors: Dict[str, Author] = {} now = datetime.now(tz=timezone.utc) one_month_ago = now - timedelta(days=30) three_months_ago = now - timedelta(days=90) six_months_ago = now - timedelta(days=180) one_year_ago = now - timedelta(days=365) for discussion in discussion_nodes: discussion_author_name = None if discussion.author:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 17 04:13:50 UTC 2024 - 19.2K bytes - Viewed (1) -
docs/uk/docs/tutorial/extra-data-types.md
* `datetime.time`: * Пайтонівський `datetime.time`. * У запитах та відповідях буде представлений як `str` в форматі ISO 8601, як: `14:23:55.003`. * `datetime.timedelta`: * Пайтонівський `datetime.timedelta`. * У запитах та відповідях буде представлений як `float` загальної кількості секунд.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.8K bytes - Viewed (0) -
docs/en/docs/tutorial/extra-data-types.md
* `datetime.time`: * A Python `datetime.time`. * In requests and responses will be represented as a `str` in ISO 8601 format, like: `14:23:55.003`. * `datetime.timedelta`: * A Python `datetime.timedelta`. * In requests and responses will be represented as a `float` of total seconds.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4K bytes - Viewed (0) -
docs/zh/docs/tutorial/extra-data-types.md
* 在请求和响应中将表示为 ISO 8601 格式的 `str` ,比如: `2008-09-15`. * `datetime.time`: * 一个 Python `datetime.time`. * 在请求和响应中将表示为 ISO 8601 格式的 `str` ,比如: `14:23:55.003`. * `datetime.timedelta`: * 一个 Python `datetime.timedelta`. * 在请求和响应中将表示为 `float` 代表总秒数。 * Pydantic 也允许将其表示为 "ISO 8601 时间差异编码", <a href="https://docs.pydantic.dev/latest/concepts/serialization/#json_encoders" class="external-link" target="_blank">查看文档了解更多信息</a>。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.9K bytes - Viewed (0) -
docs/ko/docs/tutorial/extra-data-types.md
* 파이썬의 `datetime.date`. * 요청과 응답에서 `2008-09-15`와 같은 ISO 8601 형식의 `str`로 표현됩니다. * `datetime.time`: * 파이썬의 `datetime.time`. * 요청과 응답에서 `14:23:55.003`와 같은 ISO 8601 형식의 `str`로 표현됩니다. * `datetime.timedelta`: * 파이썬의 `datetime.timedelta`. * 요청과 응답에서 전체 초(seconds)의 `float`로 표현됩니다.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.3K bytes - Viewed (0) -
docs/ja/docs/tutorial/extra-data-types.md
* リクエストとレスポンスはISO 8601形式の`str`で表現されます: `2008-09-15` * `datetime.time`: * Pythonの`datetime.time`. * リクエストとレスポンスはISO 8601形式の`str`で表現されます: `14:23:55.003` * `datetime.timedelta`: * Pythonの`datetime.timedelta`です。 * リクエストとレスポンスでは合計秒数の`float`で表現されます。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.2K bytes - Viewed (0) -
docs/em/docs/tutorial/security/oauth2-jwt.md
``` //// //// tab | 🐍 3️⃣.1️⃣0️⃣ & 🔛 ```Python hl_lines="88-105" {!> ../../docs_src/security/tutorial004_py310.py!} ``` //// ## ℹ `/token` *➡ 🛠️* ✍ `timedelta` ⏮️ 👔 🕰 🤝. ✍ 🎰 🥙 🔐 🤝 & 📨 ⚫️. //// tab | 🐍 3️⃣.6️⃣ & 🔛 ```Python hl_lines="115-130" {!> ../../docs_src/security/tutorial004.py!} ``` ////
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.5K bytes - Viewed (0) -
fastapi/encoders.py
ENCODERS_BY_TYPE: Dict[Type[Any], Callable[[Any], Any]] = { bytes: lambda o: o.decode(), Color: str, datetime.date: isoformat, datetime.datetime: isoformat, datetime.time: isoformat, datetime.timedelta: lambda td: td.total_seconds(), Decimal: decimal_encoder, Enum: lambda o: o.value, frozenset: list, deque: list, GeneratorType: list, IPv4Address: str, IPv4Interface: str,
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 21:56:59 UTC 2024 - 10.8K bytes - Viewed (0) -
docs/de/docs/tutorial/security/oauth2-jwt.md
/// ```Python hl_lines="89-106" {!> ../../docs_src/security/tutorial004.py!} ``` //// ## Die *Pfadoperation* `/token` aktualisieren Erstellen Sie ein <abbr title="Zeitdifferenz">`timedelta`</abbr> mit der Ablaufzeit des Tokens. Erstellen Sie einen echten JWT-Zugriffstoken und geben Sie ihn zurück. //// tab | Python 3.10+ ```Python hl_lines="117-132"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 15K bytes - Viewed (0) -
docs/en/docs/tutorial/security/oauth2-jwt.md
/// ```Python hl_lines="90-107" {!> ../../docs_src/security/tutorial004.py!} ``` //// ## Update the `/token` *path operation* Create a `timedelta` with the expiration time of the token. Create a real JWT access token and return it. //// tab | Python 3.10+ ```Python hl_lines="118-133" {!> ../../docs_src/security/tutorial004_an_py310.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 26 11:45:10 UTC 2024 - 12.8K bytes - Viewed (0)