From df305bb232b79e4821ebbf5b43f3f93278e0865b Mon Sep 17 00:00:00 2001 From: Darwin Louis Toledo Date: Tue, 13 Mar 2018 16:39:21 +0800 Subject: [PATCH] Update README.md --- README.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 5c5c346..05784c1 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ repositories { dependencies { ... - compile 'me.darwinlouistoledo:petsa:1.0' + compile 'me.darwinlouistoledo:petsa:1.2' ... } @@ -26,32 +26,31 @@ Here are sample usage of the library. The `fomat()` method will return a String ```java Petsa.with(new Date()) - .toFormat("MM/dd/yyyy").format(); - + .toPattern("MM/dd/yyyy").format(); ``` ```java Petsa.with(System.currentTimeMillis()) - .toFormat("dd/MM/yyyy HH:mm") + .toPattern("dd/MM/yyyy HH:mm") .format(); ``` ```java Petsa.with("03/09/2018") - .fromFormat("MM/dd/yyyy") - .toFormat("MMMM dd, yyyy") + .fromPattern("MM/dd/yyyy") + .toPattern("MMMM dd, yyyy") .format(); ``` ```java Petsa.with(System.currentTimeMillis()) - .toFormat("hh:mm aa") + .toPattern("hh:mm aa") .format(); ``` ```java Petsa.with(System.currentTimeMillis()) - .toFormat("MMMM dd, yyyy hh:mm aa") + .toPattern("MMMM dd, yyyy hh:mm aa") .locale(Locale.JAPAN) .format(); ```