jiffy

Jiffy is a Flutter (Android, IOS and Web) date time package for parsing, manipulating, querying and formatting dates

MIT License

Stars
576

Bot releases are visible (Hide)

jiffy - v6.3.1 Latest Release

Published by jama5262 5 months ago

What's Changed

Full Changelog: https://github.com/jama5262/jiffy/compare/v6.3.0...v6.3.1

jiffy - v6.3.0

Published by jama5262 7 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/jama5262/jiffy/compare/v6.2.2...v6.3.0

jiffy - v6.2.2

Published by jama5262 10 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/jama5262/jiffy/compare/v6.2.1...v6.2.2

jiffy - v6.2.2

Published by jama5262 10 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/jama5262/jiffy/compare/v6.2.1...v6.2.2

jiffy - v6.2.1

Published by jama5262 over 1 year ago

What's Changed

Full Changelog: https://github.com/jama5262/jiffy/compare/v6.2.0...v6.2.1

jiffy - v6.2.0

Published by jama5262 over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/jama5262/jiffy/compare/v6.1.0...v6.2.0

jiffy - v6.1.0

Published by jama5262 over 1 year ago

What's Changed

Full Changelog: https://github.com/jama5262/jiffy/compare/v6.0.0...v6.1.0

jiffy - v6.0.0

Published by jama5262 over 1 year ago

What's Changed

Full Changelog: https://github.com/jama5262/jiffy/compare/v5.0.1...v6.0.0

jiffy - v5.0.1

Published by jama5262 over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/jama5262/jiffy/compare/v5.0.0...v5.0.1

jiffy - Release 5.0.0

Published by jama5262 over 3 years ago

5.0.0

What's Changed

New Contributors

Full Changelog: https://github.com/jama5262/jiffy/compare/v4.1.0...v5.0.0

jiffy - Release 4.0.0

Published by jama5262 over 3 years ago

4.0.0

Major Changes

  1. Implemented null safety
  2. Jiffy cloning
    var jiffy1 = Jiffy();
    var jiffy2 = jiffy1.clone();
    // or 
    var jiffy1 = Jiffy();
    var jiffy2 = Jiffy(jiffy1);
    
  3. Bug fix diff() function
  4. All methods return Jiffy, except utc() and local() functions
  5. Added Persian fa locale contributed by mozaffari
  6. Added Norwegian nb locale contributed by Yilmaz Guleryuz
  7. Added de_DE mapping locale contributed by Sebastian Rutofski
  8. Fixed minor locale bugs

What's Changed

New Contributors

Full Changelog: https://github.com/jama5262/jiffy/compare/v3.0.1...v4.0.0

jiffy - Release version 3.0.1

Published by jama5262 over 4 years ago

  • Patch changes

Fixed Undefined name 'Units' bug

Swedish locale sv contributed by Erik Carlsson

jiffy - Release version 3.0.0

Published by jama5262 over 4 years ago

  • Major changes

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

jiffy - Release version 2.2.0

Published by jama5262 almost 5 years ago

  • Added more string parsing functionality. See below
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)
  • Added support to Polish locale pl
jiffy - Release version 2.1.2

Published by jama5262 almost 5 years ago

  • Minor bug fixes on the following

Bug fix to support startOf and endOf for locales

Bug fix on week getter

jiffy - Release version 2.1.1

Published by jama5262 almost 5 years ago

  • Minor bug fixes on ordinal date formating

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

jiffy - Release version 2.1.0

Published by jama5262 almost 5 years ago

  • Ordinal date parsing and formating
    In Jiffy you can now parse and format with ordinal date. e.g
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"

  • Added daysInMonth method to get number of days for specific months .e.g
Jiffy([2016, 1]).daysInMonth; // 31
Jiffy([2016, 2]).daysInMonth; // 28
Jiffy([2017, 2]).daysInMonth; // 29
jiffy - Release version 2.0.0

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));
jiffy - Release version 1.0.0

Published by jama5262 almost 5 years ago

jiffy - Release version 1.1.0

Published by jama5262 almost 5 years ago

Add more functionality to parsing. These are

  • Array parsing Jiffy([2019, 10, 21]);
  • Map parsing Jiffy({"year": 2019, "month": 10});
  • Dart DateTime parsing Jiffy(DateTime.now());
  • String parsing Jiffy("2019-10-21");