YamTimes
YamTimes is a modern, lightweight Python library for date and time manipulation, offering an intuitive API for common temporal operations. It provides a clean interface for working with dates, times, and timezones while maintaining simplicity and performance.
🚀 Key Features
📅 Comprehensive Date Handling
# Easy date creation and formatting
time = YamTimes(2024, 3, 15)
print(time.to_string("%Y-%m-%d")) # "2024-03-15"
# Check business days
time.is_weekday() # True
time.next_business_day() # Skip weekends
⏰ Time Manipulation
# Time arithmetic
time.add_hours(24)
time.subtract_minutes(30)
time.next_week()
time.last_month()
🌟 Smart Date Features
# Zodiac sign detection
time.is_aries_sign() # Check if date falls in Aries
time.is_pisces_sign() # Check if date falls in Pisces
# Date comparison
time.is_weekend() # Check if it's weekend
time.is_holiday("US") # Check if it's a holiday
🌍 Internationalization
# Get localized names
time.month_name("pt_BR") # "Março"
time.weekday_name("es_ES") # "Viernes"
📊 Date Analysis
# Period calculations
time.days_in_month() # Get days in current month
time.is_leap_year() # Check if current year is leap
time.weeks_in_year() # Get number of weeks in year
⚡ Performance
- Lightweight wrapper around Python's datetime
- Fast execution for common operations
🛠️ Installation
pip install yamtimes
📚 Documentation
Full documentation available at YamTimes Wiki
📝 License
MIT License
Metadata
Release files for yamtimes 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yamtimes-0.0.1.tar.gz | 11.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yamtimes-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.1 kB
Release files / yamtimes-0.0.1.tar.gz
| Download URL | yamtimes-0.0.1.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82918e98a257e36543d1dff61dcb4f7aecbdf849076420a70f82337bb122f7ec
|
|
BLAKE2b-256 checksum How to use checksums |
bd5f46c621b887f934c07d2ea994eb092fe4c9a55c7ce58143581b7d48286077
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.0
|
Release files / yamtimes-0.0.1-py3-none-any.whl
| Download URL | yamtimes-0.0.1-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b98f29bfb85df8a20e0bd83a662ad69f9e195d00168ce064b8ab2cdab832a2fd
|
|
BLAKE2b-256 checksum How to use checksums |
b5db9e0518f93bda8703f081f49cfc8a517b06c8ac5cefbfbde4954628981313
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.0
|