iicsys / pypmu

pyPMU - Python implementation of the IEEE C37.118 synchrophasor standard
BSD 3-Clause "New" or "Revised" License
62 stars 46 forks source link

how to timestamp by myself #46

Open guide12349 opened 5 months ago

guide12349 commented 5 months ago

Now in the code looks like it will timestamp by itself that takes the time from the microprocessor used. I want to timestamp by myself. I want to add Unix Time values into it myself. How do I fix it?

poledna commented 3 weeks ago

Hi ive just seen your question, its quite simple actually if you didnt solve that yet. but when you create the frame you just need to set the soc second of century and frasec fraction of a second

https://github.com/iicsys/pypmu/blob/66e6c495a91efb8a6018061ff7955a6654b1404d/synchrophasor/frame.py#L53C2-L54C50