From bd800f0462170d18323b7918ce59a7e46f35c703 Mon Sep 17 00:00:00 2001 From: CF Mitrah Date: Tue, 3 Sep 2019 19:51:03 +0530 Subject: [PATCH] Added a example for mask(epoch) in datetimeformat --- docs/03.reference/01.functions/datetimeformat/_examples.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/03.reference/01.functions/datetimeformat/_examples.md b/docs/03.reference/01.functions/datetimeformat/_examples.md index 234d666c9..89073320f 100644 --- a/docs/03.reference/01.functions/datetimeformat/_examples.md +++ b/docs/03.reference/01.functions/datetimeformat/_examples.md @@ -7,7 +7,7 @@ //formant the date & time by server time dateandtime = createDateTime(year(now()),month(now()),day(now()),hour(now()),minute(now()),second(now())); writeDump(dateTimeFormat(dateandtime, "dddd, dd/mmm/yyyy,hh:nn:ss tt,zzzz")); - + writeDump(dateTimeFormat(dateandtime, "epoch")); //Member function dt=createDate(2015,04,14); writedump(dt.dateTimeFormat("full")); @@ -15,4 +15,6 @@ writedump(dt.dateTimeFormat("medium")); writedump(dt.dateTimeFormat("short")); writeDump(dt.dateTimeFormat("GG-dddd, dd/mmm/yyyy,hh:nn:ss tt,zzzz")); + writeDump(dt.dateTimeFormat("epoch")); + writeDump(now().dateTimeFormat("epoch")); ``` \ No newline at end of file