LogoLogo
Home
  • 🏠Home
  • Open API Application
  • ReXgen API Documentation
    • ReXgen Open API
  • Data Conversion Library
    • RxLibrary.dll()
      • RxLib.XmlToRxc()
      • RxLib.ConvertData()
      • RxLib.ConvertStatus()
  • Device Library
    • RgUSBdrv.dll
      • DeviceIsReady()
      • GetFirmwareVersion()
      • SendConfiguration()
      • ReflashLogger()
      • InitLiveData()
      • StopLiveData()
      • GetDateTime()
      • SetDateTime()
      • GetLogCount()
      • FormatSDCard()
      • GetSDLogInfo()
      • GetLogData()
Powered by GitBook
On this page
Export as PDF
  1. Device Library
  2. RgUSBdrv.dll

GetDateTime()

Gets the set RTC time

C#

[DllImport("RGUSBdrv.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern UInt32 GetDateTime();

Returns:

Date time in UNIX Date time format

C# Example:

public static DateTime GetDateandTime()
        {
            uint uDateTime;
            uDateTime = GetDateTime();
            return DateTimeOffset.FromUnixTimeSeconds(uDateTime).DateTime;
        }
        private void button1_Click(object sender, EventArgs e)
        {
            if (Connected)
                label1.Text = GetDateandTime().ToString();

        }
PreviousStopLiveData()NextSetDateTime()

Last updated 2 years ago