C# Class tik4net.TikTimeHelper

Functions to convert MikroTik timespans to useable formats. Credits: D-Bullock
Show file Open project: danikf/tik4net

Public Methods

Method Description
FromTikTimeToSeconds ( string time ) : int

Convert a MikroTik time string to seconds

ToTikTime ( int seconds ) : string

Convert the seconds passed in to a MikroTik time string

ToTikTime ( long seconds ) : string

Convert the seconds passed in to a MikroTik time string

Method Details

FromTikTimeToSeconds() public static method

Convert a MikroTik time string to seconds
public static FromTikTimeToSeconds ( string time ) : int
time string The time as specified by MikroTik
return int

ToTikTime() public static method

Convert the seconds passed in to a MikroTik time string
public static ToTikTime ( int seconds ) : string
seconds int
return string

ToTikTime() public static method

Convert the seconds passed in to a MikroTik time string
public static ToTikTime ( long seconds ) : string
seconds long
return string