Date-Time Operations
2240
Rating Star
Rating Star
Rating Star
Rating Star
Rating Star
Download
Overview
You can get the date and time on any format that you like and calculate the duration between two dates, set/get date-time objects. For the complete list of functions please visit: https://www.joda.org/joda-time/key_format.html Full list of supported TimeZones can be founded here : https://garygregory.wordpress.com/2013/06/18/what-are-the-java-timezone-ids/
Actions
Get the current DateTime →
Platforms:
Web, Android, iOS
Get the current timestamp →
Platforms:
Web, Android, iOS
Get the hours between two DateTime objects →
Platforms:
Web, Android, iOS
Get DateTime object in a specific format →
Platforms:
Web, Android, iOS
Get the current DateTime →
Platforms:
Web, Android, iOS
Get day of the week from a DateTime object →
Platforms:
Web, Android, iOS
Get hour from a DateTime object →
Platforms:
Web, Android, iOS
Get the month name from a DateTime object →
Platforms:
Web, Android, iOS
Get the month from a DateTime object →
Platforms:
Web, Android, iOS
Get the year from a DateTime object →
Platforms:
Web, Android, iOS
Set days of a DateTime object →
Platforms:
Web, Android, iOS
Set hours of a DateTime object →
Platforms:
Web, Android, iOS
Set milliseconds of a DateTime object →
Platforms:
Web, Android, iOS
Set minutes of a DateTime object →
Platforms:
Web, Android, iOS
Set months of a DateTime object →
Platforms:
Web, Android, iOS
Set seconds of a DateTime object →
Platforms:
Web, Android, iOS
Set weeks of a DateTime object →
Platforms:
Web, Android, iOS
Set years of a DateTime object →
Platforms:
Web, Android, iOS
What's new
Added an option for locale in date time format
Added more actions for handling date-time objects
Updated "Get the current Daytime" action with possibility to get time according to the Time Zone
Permissions
No special permissions are required
Shlomi Diskin
date, time, joda, timestamp, jodatime, format, set-date, get-date, duration
Java
Web, Android, iOS
V1.4
Frequently Asked Questions
An Addon is a collection of coded Automation Actions you can use within any test to empower TestProject's in-browser recorder and extend its built-in capabilities even further. Addons are stored in a collaborative library on TestProject's platform. They are developed and shared by the entire community, and give you the power to effortlessly enhance your recorded tests while saving up valuable time. Learn more here.
An Automation Action is a specific coded action within an Addon, that helps you with the creation of your test automation and acts as a building block within your test. The goal of an Automation Action is to save you valuable time and effort in order to enhance your test cases.
Yes, the Addons library and all of their Automation Actions are 100% free, created and contributed by the community for the community.
Definitely! You can use our Java SDK to customize any coded action to fit your exact testing needs. Read more about it here or reach out to us for help at [email protected].
For sure! Feel free to suggest an Addon or an Automation Action you might be missing over on our suggestions board here. The TestProject Team reviews carefully every single request and prioritize its development accordingly.
Of course! TestProject has a dedicated team of Solution Engineers available to help you with any of your testing needs and on any question you may have. Simply reach out to our experts via the chat, active forum, or write to us at [email protected].
Yes it is! TestProject is 100% free test automation platform and is powered by Tricentis, the #1 leader in software testing, extending its support and commitment for the open source community.