Questions tagged [real-time-clock]

Quoting Wikipedia:

A real-time clock (RTC) is a computer clock (most often in the form of an integrated circuit) that keeps track of the current time.

Micro controllers, Android, related assembly (or low-level) code are concepts that usually accompany so make sure you pick the right one.

199 questions
0
votes
0 answers

Realtime jQuery Digital Clock with Server Time

I have a digital clock made with jQuery, it displays current exact time from the client machine, it works perfectly, BUT I want to make it display the exact time from the server and not the client. How it works it updates every 1000ms (1 second) and…
medk
  • 9,233
  • 18
  • 57
  • 79
0
votes
0 answers

Visual Studio Code Compilation problem, c++

There is an error when compiling the code in visual studio, the code and the error are copied here, the code seems to be fine still the problem is occurring, kindly help.The error keeps on coming, I've also attested a screenshot of the same,it might…
0
votes
0 answers

ReactJS How to update specific components only on page load

In ReactJS I created an analogue clock as a component that updates every second using: - componentDidMount () { setInterval(()=> { this.setClock() }, 1000) } I also have a component that updates on page load with random names. Since…
Merman
  • 1
  • 1
0
votes
2 answers

How to display real clock time after fetching time from API iOS

I've started learning Swift and iOS. For learning purpose I've crated a weather app using openweathermap api. In the api response, It gives me the time in Unix UTC time. I've converted the time (Int) to String using this function in extension - func…
mefahimrahman
  • 197
  • 2
  • 6
  • 29
0
votes
1 answer

how to get real server time rather than local pc time for my javascript clock?

function setTime(){ const now=new Date(); // second hand const seconds=now.getSeconds(); const secondDegree=((seconds/60)*360+90); const secondhand=document.querySelector('.sec-hand'); …
0
votes
2 answers

RTC with msp430

I have asked this question before, but I think this time I can ask with some more clarity. The below is my RTC Test code. I am using msp430f5418 with IAR EW 5. My problem is after some time (we tested with 15 minutes and more) the minutes interrupt…
Harikrishnan
  • 3,664
  • 7
  • 48
  • 77
0
votes
1 answer

Getting Date and Time from RTC module using raspberrypi running on Windows 10 IoT core and displaying date time on Windows 10 IoT dashboard

Could anyone tell me as to how to read date and time from RTC module DS3231 using Raspberrypi running on windows 10 IoT core and displaying the date and time in the IoT dashboard. Thanking you in advance.
0
votes
1 answer

How do i correctly configure and use a RTC DS3231 in my arduino project?

My goal is to build a Alarm clock (in form of the C4 in CSGO). I can't properly setup or use the RTC DS3231, it won't change the time/date and Outputs the same weird value every time (17:59:40.727 -> Mittwoch, 165. 2165 45:165:85) I used some random…
0
votes
0 answers

DS1307 RTC displaying issue

I have used PIC18F24k40 series MCU with DS1307. Here is portion of code posted. DATE_TIME_SET_ADD() function where i am setting time.Display_RTC_Clock() is displaying time. currently it working like this i am setting value of MIN_SET & SEC_SET…
user50949
  • 37
  • 2
  • 7
0
votes
4 answers

stm32h7 rtc resets after power down (vbat is connected)

I am using a stm32h753 and stm32cubemx, and trying to run the RTC module on VBAT. To do this I have connected a battery to the MCU. RTC is connected to LSE. Next, I set the RTC in my code and then I disconnect the MCU from power source, and then…
vouria
  • 25
  • 3
  • 9
0
votes
0 answers

Convert string with time data to rtc_time structure in Linux kernel

I can easily convert kernel data type struct rtc_time to string with help sprintf(), but I can't do reverse operation: string "Thu Aug 23 14:55:02 2001" to rtc_time structure Should I write my own realisation if strptime() function into my kernel…
0
votes
0 answers

DS1302 RTC board weird outputs on Arduino's Serial monitor

I have a DS1302 RTC board (Waveshare) connected to an Arduino uno. I'm printing time to Arduino's Serial Monitor but I get weird numbers/characters, and after 2-4 seconds it stops printing. Wiring: Vcc -> 5v GND -> GND I/O (MISO) -> Pin 12 SCLK…
BrainTrance
  • 79
  • 11
0
votes
1 answer

ApiRTC: Is there a way to get a call duration, or hang up call at specific duration or time?

I am working on a project that includes real-time communication through ApiRTC? Looking for a solution to destroy call at specific duration, or at specific time, for example at 6PM? Is there any way to get call duration and based on that destroy…
Peky27
  • 101
  • 1
  • 8
0
votes
0 answers

Is there a way to get RTC clock with nano-second precision in "CODESYS Control for Linux SL"

I have CODESYS Development SW version "3.5 SP15 patch 1" running on Windows PC and "CODESYS Control for Linux SL" Soft PLC version 3.5.15.10 running on Ubuntu 16.04.6 LTS in demo mode. For my learning task I need to get the current RTC time with…
0
votes
2 answers

how to create async/await console app c# clock

I'm new to async/await and I have tried to create a responsive clock as a demo. the clock worked fine, but when I tried to get it into asynchronous function and awaited the delay it stopped working, displaying only the time in which it ran. here is…
user11936886