Can you help me? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can you help me?

How to let the code get your device’s time

20th Apr 2020, 11:24 PM
Eslam Khaled
Eslam Khaled - avatar
2 Answers
+ 3
This displays the time of the processor running it. println(java.time.LocalTime.now())
21st Apr 2020, 10:21 PM
John Wells
John Wells - avatar
+ 1
JavaScript A =new date() B=A.getHours() C=A.getMin() D=A.getSec() Document.write(B+':'+C+':'+D)
21st Apr 2020, 1:44 AM
anand Pandit
anand Pandit - avatar