![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
PyTimeliner
PyTimeliner is a Python package for working with time-based functions such as formatting, time calculations, and multilingual time expressions. This package provides various tools for handling date and time calculations in multiple languages.
setup.py
First, clone the repository and navigate to the project directory. Then, install the package with:
pip install -e .
This package uses googletrans for translation support. If you are using requirements.txt, make sure it contains:
googletrans==4.0.0-rc1
Using PyTimeliner, you can perform time calculations, format times, and translate time expressions.
from pytimeliner.timeliner import TimeLiner
from datetime import datetime
# English timeline
timeliner = TimeLiner(language='en')
print(timeliner.format_time(datetime.now()))
print(timeliner.time_since(datetime(2023, 1, 1, 12, 0, 0)))
timeliner.set_language('es')
print(timeliner.time_since(datetime(2023, 1, 1, 12, 0, 0)))
2024-10-29 12:34:56
"298 days ago" # English
"hace 298 dÃas" # Spanish (translated)
To contribute to this project, please follow the GitHub Repository and create a fork. Make sure you have the following in requirements.txt:
googletrans==4.0.0-rc1
You can install the requirements with:
pip install -r requirements.txt
To run tests, use the tests folder which contains test files:
python -m unittest discover -s tests
If you want to contribute, feel free to open an issue or submit a pull request. All contributions are welcome!
FAQs
Create a timeline by listing events with multilingual support.
We found that pytimeliner demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.