![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.
prose-clock
Advanced tools
We've seen digital clocks. Boring. We've seen analog time pieces. Quaintly geometric. In the world of text-based communication, we expect a timely and prosaic declaration.
prose-clock displays the time in the manner of a spoken English colloquial expression. It's aware of the notions of morning, afternoon, and night, thus keeping AM vs. PM unambiguous.
npm i prose-clock
import { ProseClock } from 'prose-clock';
Default is conventional, idiomatic English. Set the style in the consructor to 'curse'
or 'regular'
(regular
is default).
If 'curse'
is used, the time is also expressed in English, but the text is
occasionally laced with colorful slang.
// Two ways to instantiate
const pc = new ProseClock();
const pc = new ProseClock('curse');
pc.getTime(); // --> "exactly twenty to eight at night"
Default is current time. However, you can optionally pass in a Date object:
const d = new Date();
d.setHours(12, 45);
pc.getTime(d); // --> "exactly quarter to one in the afternoon"
In this module's world, granularity is a minute. It would undermine the philosophy of ProseClock to display, for example, "just after five past nine in the morning and twenty-four seconds."
Enhance your app; wrap pc.getTime()
in a setInterval()
call, configured to
run every 20 seconds.
Have fun!
Gerry Gold
August 2023
FAQs
Intelligible time: an alternative to digital and analog formats
The npm package prose-clock receives a total of 3 weekly downloads. As such, prose-clock popularity was classified as not popular.
We found that prose-clock demonstrated a not healthy version release cadence and project activity because the last version was released 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.