Tags:
view all tags
---+ Real Time Clock Epoch is 1.1.1970 (Unix time stamp). But valid dates are from 1.1.2000 to 31.12.2099 because of the !STM32WB RTC peripheral. <pre> time! ( -- u ) Returns the unix time stamp. time@ ( u -- ) Sets the real time clock. .time ( -- ) Prints the current date and time (YYYY-MM-DDTHH:MM:SS ISO 8601). date </pre> ---++ How to set the current date and time? Copy the current time stamp from a Unix machine (GNU/Linux box) or from https://www.unixtimestamp.com/: <pre> $ <b>date +%s</b> 1602430522 </pre> Paste the time stamp in the Mecrisp-Cube console: <pre> ok. <b>1602430522 time![RET]</b> ok. <b>.time[RET]</b> 2020-10-11T15:35:27 ok. <b>date[RET]</b> Sun Oct 11 15:36:02 2020 </pre> -- %USERSIG{PeterSchmid - 2020-10-11}% ---++ Comments %COMMENT%
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r6
|
r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r1 - 2020-10-11
-
PeterSchmid
Home
Site map
Cosmac web
MRR web
MecrispCube web
SuperRandonnee web
TWiki web
Ursula web
Velo web
MecrispCube Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Edit
Attach
Copyright © 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