npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@reaxio/formatdateepoch

v1.0.1

Published

Format Date Epoch componmet for Reactjs

Readme

FORMAT Date EPOCH Reaxio

An Introduction

React component, easy, simple, small and improved, this is u Format Date Epoch

When To Use

When We Require to convert an Epoch Timestamp value to a date that a Human reads, is where we will need this React component.

Why Should You Use This?

Many of the components for Reactjs are in a single installation, not only the component you need and in many cases very heavy, but this is ideal for:

  1. Quick and easy loading and small
  2. They don't inject extra javascript and DOM elements into your page, making it slower.
  3. Easy to customize enough to adapt to the design of your site.
  4. Reaxion FORMAT Date EPOCH, takes up very little space, specific and simple for your project.
  5. It can be customized in any way.

📦 Install

npm i @reaxio/formatdateepoch

🔨 Usage

import FormatDateEpoch from "@reaxio/formatdateepoch";

const App = () => {

	const epochUnix = 1620584155
	const format = '%DD %d %MM %Y - %h:%m:%s %a' //Convert epoch to human-readable date

	return (
		<>
			<h3>Date is:</h3>
			<FormatDateEpoch unix={epochUnix} format={format} Intl='es' />
		</>
	)
};

✨ API

| Property | Description | Type | Default | | :--------- | :--------------------------------------------------------------------------------------------------------- | :------ | :------ | | unix | The current Unix epoch time a convert | Number | | | format | Convert epoch to human-readable date format | string | %d.%mm.%Y | Intl | Provides language sensitive string comparison, default is English | string | EN |


  • Note 1: In props unix, if value is not valid how Date Epoch, componet return Erro Date Epoch.

  • Note 2: The value mask for prop format is next:

    %d =returns the day of the month for the specified in param unix (1,2..30,31)

    %DD =returns the full day of the week for the one specified in param unix ( Monday, Tuesday,...)

    %D =returns the shorts day of the week for the one specified in param unix ( Mon, Tue,...)

    %mm =returns the number month in the specified param unix (01,02..11,12)

    %MM =returns the full month in the specified param unix (January,February..)

    %M =returns the short month in the specified param unix (Jan,Feb, Mar...)

    %Y =returns the full year of the specified param unix (2019,2020, 2021...)

    %H =returns the 24 hour for the specified param unix (12,13,14...21,23)

    %h =returns the 12 hour for the specified param unix (12,01,02...10,11)

    %m =returns the minutes for the specified param unix

    %s =returns the seconds for the specified param unix

    %a =returns the abbreviations (am) or (pm) for the specified param unix (am,pm)

  • Note 3: The props Intl, accept only ES or es = Spaning or EN or en = English.


🔺Examples

Look at our FORMAT Data EPOCH example in CodeSandox, easy, simple and fast !!!

Thanks for using it. 😃 👊🏼