getTimeFormat

getTimeFormat is a helper function will return Dashboards current time format that has been set by the user from the userSettings

How to use

import { Plugin } from'@root'

Plugin.getTimeFormat()

This method will return '24h' if the user sets the time format to "Use 24h format (military time)" and it will returns '12h' otherwise.

Last updated