DateTools : Some tools to work with date and time

1.Introduction

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

Last Updated: July 20, 2020 9:37 AM

 

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

 

image

image893×333 23 KB

 

 

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

 

image

image713×253 13.5 KB

 

 

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

 

image

image874×200 14.9 KB

 

 

Gets offset from timezone id

image

Returns true if local datetime is in day light savings

 

image

image755×205 10.6 KB

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.

4.Downloads

Here are two download links:
Download Link 1: com.sunny.DateTools.aix (43.0 KB)
Download Link 2: DateTools.aix – Google Drive

If you like my work then you can download the aix from the shortened link given below.

Download Link 3: http://raboninco.com/21784285/datetools-aix

5.Updates

New Blocks

Some new blocks have been added in Version 2 to make it easier to work with dates…

component_method%20(9)

component_method%20(10)

scrnli_10_28_2019_8-45-49%20AM

scrnli_10_28_2019_8-46-55%20AM

scrnli_10_28_2019_8-47-45%20AM

scrnli_10_28_2019_8-48-33%20AM

scrnli_10_28_2019_8-49-54%20AM

scrnli_10_28_2019_8-51-04%20AM

scrnli_10_28_2019_8-53-47%20AM

Bug Fixes/Changes

  • Some minor changes

New Blocks
image

image

image

image

image

image

Bug fixes/Changes
1.Fixed bug in ‘Difference’ block.
2.Some minor changes in existing blocks

New blocks
Just one new block with its event handler:
image

Bug Fixes/Changes

  • Some spelling fixes
  • Replaced some old libraries with new libraries
  • Some other minor changes

Changes

  • Removed DateFormat property

Bug Fixes

  • Fixed bug in GetOnlineDateTime block

Bug Fixes

  • Fixed bug in GetOnlineDateTime block

Changes

  • Some internal changes

Bug Fixes

  • Removed un-necessary NTP servers from list
Subscribe
Notify of
2 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
wael
1 year ago

Hi
I have a list of TV show start time with GMT 0:00
how to change time of this list to another time zone say GMT +02:00 using your extension
i use another extension (time tool extension) as it contain this block
comment image
but it give 12hr time without am/pm
how can i get the result of this block with your extension