0.0.11 • Published 3 years ago

react-localized-datetime v0.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

react-localized-datetime

Usage

First you need to add language provider somewhere into your project

// App.tsx

import { DateTimeLocalizationProvider } from 'react-localized-datetime';

const App = () => (
    <DateTimeLocalizationProvider value="cs-cz">
        {/* children */}
    </DateTimeLocalizationProvider>
);

and then you just wrap the time string in localization component:

import { LocalizedTime, LocalizedDateTime } from 'react-localized-datetime';


const Record = () => (
    <div>
        <LocalizedDateTime>2022-08-11 16:20:00</LocalizedDateTime>
        <span>{/* text */}</span>
    </div>
);
0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago