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)

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

Release files for getKST 1.0.1

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.1
File Size Uploaded
getkst-1.0.1.tar.gz 2.9 kB Details

Built distribution (wheel)

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

Total release size: 6.1 kB

Release files / getkst-1.0.1.tar.gz

Download URL getkst-1.0.1.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4de30032b1d300daba6375b5b7ee462b956b1d3443d03f746f04d2274f39ae2c
BLAKE2b-256 checksum
How to use checksums
67850b951a9f8b1637e78f8451b37e325772cb41f4d872bc610994a5e2cccfaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

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

Download URL getkst-1.0.1-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f51ab62f611f2912c50f2eadbee221db84fb62d73e3b6cb2a81d133656d9c518
BLAKE2b-256 checksum
How to use checksums
6f06e591afcb68bcec227d21ce0439a8bc667933950644f60f0bddc41bce0fde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

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