Jiffy is a Flutter (Android, IOS and Web) date time package for parsing, manipulating, querying and formatting dates
MIT License
Bot releases are visible (Hide)
Full Changelog: https://github.com/jama5262/jiffy/compare/v6.3.0...v6.3.1
Published by jama5262 7 months ago
Full Changelog: https://github.com/jama5262/jiffy/compare/v6.2.2...v6.3.0
Published by jama5262 10 months ago
Full Changelog: https://github.com/jama5262/jiffy/compare/v6.2.1...v6.2.2
Published by jama5262 10 months ago
Full Changelog: https://github.com/jama5262/jiffy/compare/v6.2.1...v6.2.2
Published by jama5262 over 1 year ago
Full Changelog: https://github.com/jama5262/jiffy/compare/v6.2.0...v6.2.1
Published by jama5262 over 1 year ago
Full Changelog: https://github.com/jama5262/jiffy/compare/v6.1.0...v6.2.0
Published by jama5262 over 1 year ago
Full Changelog: https://github.com/jama5262/jiffy/compare/v6.0.0...v6.1.0
Published by jama5262 over 1 year ago
Full Changelog: https://github.com/jama5262/jiffy/compare/v5.0.1...v6.0.0
Published by jama5262 over 1 year ago
Full Changelog: https://github.com/jama5262/jiffy/compare/v5.0.0...v5.0.1
Published by jama5262 over 3 years ago
Full Changelog: https://github.com/jama5262/jiffy/compare/v4.1.0...v5.0.0
Published by jama5262 over 3 years ago
var jiffy1 = Jiffy();
var jiffy2 = jiffy1.clone();
// or
var jiffy1 = Jiffy();
var jiffy2 = Jiffy(jiffy1);
diff()
functionJiffy
, except utc()
and local()
functionsfa
locale contributed by mozaffari
nb
locale contributed by Yilmaz Guleryuz
de_DE
mapping locale contributed by Sebastian Rutofski
Full Changelog: https://github.com/jama5262/jiffy/compare/v3.0.1...v4.0.0
Published by jama5262 over 4 years ago
Published by jama5262 over 4 years ago
Unit of time are now in enums. Examples, previously startOf("day")
can now be set as startOf(Units.DAY)
String escape changes to use square braces []
. Examples, previously
Jiffy().format("yyyy 'escaped' yyyy");
and now updated to Jiffy().format("yyyy [escaped] yyyy");
Added Indonsia local id
by ampersanda and Turkish local tr
by iozozturk
Published by jama5262 almost 5 years ago
Jiffy("1995/12/25"); // A calendar date part separated by slash "/"
Jiffy("19951225"); // Basic (short) full date
Jiffy("1995-12-25 12:00:00.000"); // An hour, minute, second, and millisecond time part
Jiffy("1995-12-25T12:00:00.000"); ISO dart format
Jiffy("1995-12-25T12:00:00.000Z"); ISO dart format (UTC)
pl
Published by jama5262 almost 5 years ago
Bug fix to support startOf
and endOf
for locales
Bug fix on week getter
Published by jama5262 almost 5 years ago
Previously
Jiffy([2014, 4, 23]).format("EEEE MMMM do, yyyy"); // Wednesday April 23o, 2014
Updated
Jiffy([2014, 4, 23]).format("EEEE MMMM do, yyyy"); // Wednesday April 23rd, 2014
Published by jama5262 almost 5 years ago
Jiffy().format("MMM do yyyy"); // Oct 19th 2019
It also supports locales for the following
"en", "es", "fr", "frch", "frca", "it", "itch", "ja", "ko", "pt", "ptbr", "zh", "zhcn", "zhhk", "zhtw", "de", "deat", "dech"
daysInMonth
method to get number of days for specific months .e.gJiffy([2016, 1]).daysInMonth; // 31
Jiffy([2016, 2]).daysInMonth; // 28
Jiffy([2017, 2]).daysInMonth; // 29
Published by jama5262 almost 5 years ago
Added params to add and subtract methods
Example
Jiffy().add(days: 1);
Jiffy().add(years: 2, months: 1, duration: Duration(days: 1, hours: 30));
Published by jama5262 almost 5 years ago
Published by jama5262 almost 5 years ago
Add more functionality to parsing. These are
Jiffy([2019, 10, 21]);
Jiffy({"year": 2019, "month": 10});
Jiffy(DateTime.now());
Jiffy("2019-10-21");