1.0.1 • Published 1 year ago

ux-friendly-time v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Usage and Guide

This project seeks to display date to users in a more user friendly manner that reduces cognitive load to users.

Problem

Reminder: Your next appointment is on 02/04/2023/10:00:00.

Solution

Reminder: Your next appointment is Happening in 2 hours at 10:00 AM.

Installation

On your react project install. By default this project users current time in comparison to the given DateTime value.

npm i ux-friendly-time

Example

The library uses a component called UXTime and take in time as a prop and returns a more user friendly format of that time relative to current time.

import React from 'react';
import { UXTime } from 'ux-friendly-time';


function App() {
  const time: Date = new Date("2023-02-12T16:55:00");
  
  return (
    <div className="App">
      <UXTime time={time}/>
    </div>
  );
}

export default App;

Thank you

1.0.1

1 year ago

1.0.0-develop.3

1 year ago

1.0.0

1 year ago

1.0.0-develop.2

1 year ago

1.0.0-develop.1

1 year ago

8.0.0

1 year ago

7.0.0

1 year ago

6.0.0

1 year ago

5.0.0

1 year ago

4.0.0

1 year ago

3.0.1

2 years ago

3.0.0

2 years ago

2.0.0

2 years ago