File: util.py

package info (click to toggle)
gajim 2.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 17,496 kB
  • sloc: python: 79,966; sh: 591; xml: 67; makefile: 6
file content (12 lines) | stat: -rw-r--r-- 263 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
# This file is part of Gajim.
#
# SPDX-License-Identifier: GPL-3.0-or-later

from __future__ import annotations

from datetime import datetime
from datetime import UTC


def mk_utc_dt(timestamp: int) -> datetime:
    return datetime.fromtimestamp(timestamp, UTC)