Package org.netxms.client.datacollection
Interface TimeFormatter
public interface TimeFormatter
Interface to format time
-
Method Summary
Modifier and TypeMethodDescriptionformatDateAndTime
(long timestamp) Format date and time UNIX timestamp to human readable formatformatUptime
(long seconds) Format uptime number to human readable format
-
Method Details
-
formatUptime
Format uptime number to human readable format- Parameters:
seconds
- number of seconds since uptime- Returns:
- uptime in human readable format
-
formatDateAndTime
Format date and time UNIX timestamp to human readable format- Parameters:
timestamp
- UNIX timestamp to format- Returns:
- time and date in human readable format
-