Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私の C# プログラムでは、PLC から日時を受信しています。「 ulong」形式でデータを送信しています。ulong を DateTime 形式に変換するにはどうすればよいですか? たとえば、私は受け取っています:
ulong timeN = 99844490909448899;//time in nanoseconds
次に、それを DateTime ("MM/dd/yyyy hh:mm:ss") 形式に変換する必要があります。
どうすればこれを解決できますか?