Skip to main content

getKST

A Python package that returns datetime values ​​for the Asia/Seoul region.

PyPI version Python versions License: MIT

Installation

Prerequisites

  • Python (>=3.9)
  • tzdata (only for Windows environment, installed automatically when installing getKST)

Install via pip

pip install getKST

Install via uv

uv add getKST

Usage

Note: Default format of getKST is %Y-%m-%d %H:%M:%S as a string.

getKST() always converts to Asia/Seoul time internally before formatting, so the result is identical no matter what timezone the host machine or server is set to (UTC, EST, JST, etc.).

  • Basic Usage
    from getKST import getKST
    
    now = getKST()
    print(now)
    
  • Using other formats
    from getKST import getKST
    
    now = getKST("%Y/%m/%d")  # Year/Month/Date
    now = getKST("%H-%M-%S")  # Hour-Minute-Second
    
  • Converting an existing datetime
    from datetime import datetime, timezone
    from getKST import getKST
    
    utc_now = datetime.now(tz=timezone.utc)
    print(getKST(dt=utc_now))
    

All Python datetime formats are supported.

License

MIT

Change Log

v1.0.2

  • Added tzdata as a requirement on Windows
  • Added Change Log section at README.md

v1.0.1

v1.0.0

  • Published a package

Metadata

Release files for getKST 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for getKST 1.0.2
File Size Uploaded Provenance Actions
getkst-1.0.2.tar.gz 3.2 kB Without provenance Details for getkst-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for getKST 1.0.2
File Interpreter ABI Platform Actions
getkst-1.0.2-py3-none-any.whl Python 3 none any Details for getkst-1.0.2-py3-none-any.whl

Total release size: 6.6 kB

Release files / getkst-1.0.2.tar.gz

Download URL getkst-1.0.2.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
34b3f93036e54567115b31c4b9989b90a82c465fd6f4d57218cb24e1329eef39
BLAKE2b-256 checksum
How to use checksums
9018a7f86465934ab7cd3da7833a2ceb629365f03610592edcf7c5107ac05726
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / getkst-1.0.2-py3-none-any.whl

Download URL getkst-1.0.2-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92ce94699f17b515d928e85b9529b0e34a8809705c8ea7d19891fe4b6b061a49
BLAKE2b-256 checksum
How to use checksums
0768defaae2834fd33d8739768be8ce09dfe981efa6615b56fbfab7aa626238d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for getKST 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page