IndoTime
indotime adalah library Python sederhana yang dirancang untuk menampilkan waktu dan tanggal khusus untuk zona waktu Indonesia bagian Barat (WIB, UTC+7). Library ini dibuat dengan Python murni tanpa dependensi eksternal, sehingga ringan dan mudah digunakan untuk proyek-proyek sederhana, termasuk untuk keperluan edukasi seperti tugas sekolah.
Fitur
- Python Murni: Tidak memerlukan library pihak ketiga.
- Timezone WIB: Secara default diatur ke UTC+7.
- Bahasa Indonesia: Nama hari dan bulan ditampilkan dalam Bahasa Indonesia.
- Fleksibel: Mendukung berbagai cara pemanggilan untuk membuat objek waktu.
- Berorientasi Objek (OOP): Dibuat dengan struktur kelas yang rapi dan mudah dipahami.
Instalasi
Anda dapat menginstal indotime menggunakan pip:
pip install indotime
Contoh Penggunaan
Berikut adalah cara dasar menggunakan library indotime:
from indotime import IndoTime
# 1. Waktu lengkap saat ini
sekarang = IndoTime()
print(f"Lengkap: {sekarang.lengkap()}")
# Output: Senin, 13 Januari 2025, 10:30:00 WIB
# 2. Hanya tanggal
print(f"Tanggal: {sekarang.tanggal()}-{sekarang.bulan()}-{sekarang.tahun()}")
# Output: 13-01-2025
# 3. Hanya jam
print(f"Jam: {sekarang.jam()}")
# Output: 10:30:00
# 4. Mendapatkan komponen waktu secara spesifik
print(f"Hari ini hari {sekarang.hari()}")
# Output: Hari ini hari Senin
print(f"Sekarang bulan {sekarang.bulan_string()}")
# Output: Sekarang bulan Januari
Kontribusi
Proyek ini bersifat open source dan dibuat untuk tujuan edukasi. Jika Anda menemukan bug atau memiliki ide untuk perbaikan, jangan ragu untuk membuat issue atau pull request.
Metadata
Release files for indotime 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| indotime-0.1.2.tar.gz | 4.2 kB | Without provenance | Details for indotime-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| indotime-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for indotime-0.1.2-py3-none-any.whl |
Total release size: 8.7 kB
Release files / indotime-0.1.2.tar.gz
| Download URL | indotime-0.1.2.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ce85b7cd37605191fda82e62462b3fe36c82b2ce546e5d9365ca6f584ed5a7f
|
|
BLAKE2b-256 checksum How to use checksums |
2bad0fe2cc4a4ee17be8ec8eeb3d2a90e97751e260e91bdd4868c1ce00faf889
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / indotime-0.1.2-py3-none-any.whl
| Download URL | indotime-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cbea2a8849b6f46a1fb08732cf6cd67784ef26ede7a2caecab28315157b3600e
|
|
BLAKE2b-256 checksum How to use checksums |
a04bf65b772f39e328a294651b4b338cddcdc88a7b246e07358b664a8a615308
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for indotime 0.1.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.