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

SetDateTime()

Sets logger date time in UNIX format.

C#

[DllImport("RGUSBdrv.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern byte SetDateTime(uint DateTimeUNIX);

Parameter

[in] DateTimeUNIX

C# Example

private void btnSetDateTime_Click(object sender, EventArgs e)
     {
      uint unixTimestamp;
      unixTimestamp = (UInt32)(DateTime.Now - new DateTime(1970, 1, 1, 0, 0, 0)).TotalSeconds;
      if (Connected)
      SetDateTime(unixTimestamp);
     }
PreviousGetDateTime()NextGetLogCount()

Last updated 2 years ago