date_time_formatter 0.0.2+2 copy "date_time_formatter: ^0.0.2+2" to clipboard
date_time_formatter: ^0.0.2+2 copied to clipboard

This have only one format for the time

This package takes UNIX (milliseconds) timestamps and converts them to pretty, human-readable time and date formats.

Using #

Add the package to your pubspec.yaml

dependencies:
date_time_formatter 0.0.2+1

Import the library in a .dart file

import 'package:date_time_formatter/date_time_formatter.dart';

Format an arbitrary UNIX timestamp (int type, milliseconds since epoch) with TimeFormatter(Time:) If you using Firebase for the project you got the time and date in timestamp format. Then you should convert it into a human-readable format. So simply pass the data get from firebase to this like bellow

Timestamp(seconds, nanoseconds)

TimeFormatter(
Time: Timestamp(1659089683,98000000),
),

Formats #

This have only one format for the time Ex: 7:00 am 12:00 pm

1
likes
140
pub points
53%
popularity

Publisher

unverified uploader

This have only one format for the time

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on date_time_formatter