DateTools : Some tools to work with date and time

As the name suggests it is specially made to work with Dates but since it uses SimpleDateFormat so you can also work with Time by using appropriate format.

Latest Version: 6.1
Released: October 7, 2019
Last Updated:  July 20, 2020

2. Blocks

image

image

It has 22 function blocks and 1 event block

3. Documentation

It has not so much coplex blocks but some examples can help you to understand its usage.

image

Returns day of given date.
Note: You can also use DateTime besides Date

image

Returns difference between two dates or datetime in milliseconds.

image

Returns true if first date is after second date else false

image

Returns true if first date is before second date else false

image

Returns true if both dates are same else false

image

Returns a list of available timezones

Converts epoch timestamp to date in the given date format in provided timezone

image

Returns device’s current date and time

image

Returns current date and time in raw format

image

Returns current epoch timestamp

image

Display name of current timezone

image

Returns ID of current timezone

Converts millis in y d m s format

image

Converts epoch timestamp to date and time

image

Difference between two epoch timestamps in y d m s format

image

Returns offset of current timezone

image

Converts rawoffset(int) to offset

Gets offset from timezone id

image

Returns true if local datetime is in day light savings

Returns a list of available timezones in given offset

image

Returns DST savings of current timezone in milliseconds

component_method

Requests to NTP server to get online date time in milliseconds and raises event ‘GotOnlineDateTime’ with epoch timestamp and response.If any error occurs then timestamp will be ‘0’

5. Downloads

6. Liked my work/ Support me

Please consider donating some amount to keep me motivated.

Hope it helps!

Leave a Reply