protontime 1.0.0 copy "protontime: ^1.0.0" to clipboard
protontime: ^1.0.0 copied to clipboard

A library useful for creating fuzzy timestamps. (e.g. "2 min ago")

example/protontime_example.dart

import 'package:protontime/protontime.dart';

void main() {
  DateTime now = DateTime.now();

  String unReadableTime = "${now.year}-01-01T00:00:00.000000Z";
  final readableTime = Protontime.humanReadableTime(unReadableTime);

  print("Unreadable Time: $unReadableTime");
  print('Readable Time: $readableTime');
}
2
likes
0
points
232
downloads

Publisher

verified publishernben.com.np

Weekly Downloads

A library useful for creating fuzzy timestamps. (e.g. "2 min ago")

Homepage

Topics

#time

License

unknown (license)

More

Packages that depend on protontime