Skip to content

Releases: jama5262/jiffy

Release version 3.0.1

12 Mar 08:41
a73302f
Compare
Choose a tag to compare
  • Patch changes

Fixed Undefined name 'Units' bug

Swedish locale sv contributed by Erik Carlsson

Release version 3.0.0

04 Mar 13:47
25f3e5f
Compare
Choose a tag to compare
  • 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

Release version 2.2.0

08 Jan 12:31
75daf1c
Compare
Choose a tag to compare
  • 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

Release version 2.1.2

24 Nov 12:09
620ed66
Compare
Choose a tag to compare
  • Minor bug fixes on the following

Bug fix to support startOf and endOf for locales

Bug fix on week getter

Release version 2.1.1

01 Nov 19:10
37f37b9
Compare
Choose a tag to compare
  • 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

Release version 2.1.0

01 Nov 19:08
302e1f4
Compare
Choose a tag to compare
  • 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

Release version 2.0.0

29 Oct 07:46
Compare
Choose a tag to compare

Added params to add and subtract methods
Example

Jiffy().add(days: 1);
Jiffy().add(years: 2, months: 1, duration: Duration(days: 1, hours: 30));

Release version 1.1.0

21 Oct 18:02
08ceb90
Compare
Choose a tag to compare

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");

Release version 1.0.0

21 Oct 18:03
2ce83c9
Compare
Choose a tag to compare
Merge pull request #12 from jama5262/develop

Releasing v1.0.0 to master