Get Agent Local Time

Brian Dagan
Brian Dagan Member
edited January 2022 in Solutions

Product Name: Get Agent Local Time

Description : This Agent Procedure uses sqlRead() to pull the Agent's local time information directly from the Kaseya VSA Database... as such, it works on all endpoint types (Windows, Mac and Linux). It populates Global Variables that you can use in other Agent Procedures for today's date & time (year, month, day, hour, minute & second), yesterday's date (year, month & day), and the current quarter, week number, day number and weekday number. Like the noble Honey Badger, this Agent Procedure doesn't care about date/time localization settings on the Agent itself--it should always pull the correct information.

Instructions :

Instructions are included in _Readme.txt inside the ZIP archive