Calculate Date/Time of Last Reboot

Version 1
    Share This:

    A customer recently requested a method to convert the "uptimeSeconds" attribute from Discovery into a "Last Reboot Date/Time" that could be added to a new attribute for later synchronization with the CMDB. The attached pattern is what was produced.


    It's an excellent demonstration of how to work with times and delta's in TPL as it utilizes the following TPL functions:





    Hopefully others will find the pattern useful, or will at least be able to use the time calculations as an example for their own needs.