This is an example Bot demonstrating how to use the Automation Anywhere created World Date Time metabot. 1. Gets Local Date and Time. 2. Gets UTC Date and Time. 3. Returns time formatted specified by one of the Microsoft Windows standard time formats. 4. Returns time specified by one of the Microsoft Windows supported language cultures. 5. Returns the time adjust for Daylight Savings if specified. 6. Returns time offset by specified hours, minutes or seconds. 7. Provides an API for the World Date Time metabot user to check and preview how the time appears in different formats, cultures, local, or UTC, adjusted by Daylight Savings. In particular, it can be used to know what values can be specified as formats, or cultures. 8. Returns time as Unicode to display in all supported language scripts.
The World Date Time GUI utility is used to test all metabot parameters and to see what values to assign to the parameters of the GetDateTime API.
Key Use Case: Convenient, easy to use Metabot to get current date in time as Local or UTC, adjusted for Daylight Savings or not, in all standard time formats and cultures supported by Microsoft Windows. Also optionally offset by hours, minutes, and seconds.
See the Bot in Action
Download the Bot and follow the instructions to install it in your AAE Control Room.
Open the Bot to configure your username and other settings the Bot will need (see the Installation Guide or ReadMe for details.)
That's it - now the Bot is ready to get going!
Requirements and Inputs
- Automation Anywhere Enterprise v11.3
Inputs: GetDateTime - API Inputs : format - One of Microsoft Standard Time Formats. culture - One of Microsoft supported language cultures. local - 'True' for Local Time 'False' for UTC time. daylight - 'True' for Daylight Savings, else 'False' hourOffset - Hour offset from -12 to +12 hours. minsOffset - Minutes offset from 0 to 60 secsOffset - Seconds offset from 0 to 60 ShowDateTime - API Inputs: dateTime - Value returned from GetDateTime StartDateTimeForm - API Shows World Date Time GUI. Inputs: Nothing