Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HOW-TO] change the time format from (e.g. 33327) to a readable one with Y-M-S.milliseconds in the code "capture_video_nframes.py" #1137

Open
yaz94 opened this issue Oct 21, 2024 · 1 comment

Comments

@yaz94
Copy link

yaz94 commented Oct 21, 2024

Please only ask one question per issue!

Describe what it is that you want to accomplish
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the request here.

@yaz94 yaz94 changed the title [HOW-TO] change the time format from: [HOW-TO] change the time format from (e.g. Frame-2 captured, Timestamp: 33327) to readable one with Y-M-S.milliseconds in the code "capture_video_nframes.py" Oct 21, 2024
@yaz94 yaz94 changed the title [HOW-TO] change the time format from (e.g. Frame-2 captured, Timestamp: 33327) to readable one with Y-M-S.milliseconds in the code "capture_video_nframes.py" [HOW-TO] change the time format from (e.g. 33327) to a readable one with Y-M-S.milliseconds in the code "capture_video_nframes.py" Oct 21, 2024
@davidplowman
Copy link
Collaborator

Hi, this is really a Python question, not a Picamera2 question, so you might get better answers elsewhere.

I don't know how to do this either, but I might think about how to get the time at which the system booted (psutil.boot_time()?), add that to the sensor timestamp, and then use the datetime module to turn that into something more readable. But I'm afraid I'm only guessing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants