Difference: RealTimeClockAndDataLogging (7 vs. 8)

Revision 82020-05-27 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="Exercises"

Exercise 9: RTC and data logging

Introduction

Line: 74 to 74
  Concerning the time stamp there is a difference between MicroPython and CPython: MicroPython starts counting at 2000-01-01 while CPython uses Unix epoch, which starts at 1970-01-01.
Changed:
<
<
timeStampCPython = timeStampMicroPython + time.UNIX_TIME which is the constant 946681200
>
>
timeStampCPython = timeStampMicroPython + time.UNIX_TIME which is the constant 946677600
  MPY epoch is 2000-01-01 instead of unix epoch, which is 1970-01-01.
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback