Questions tagged [system-clock]

130 questions
0
votes
1 answer

stm8s003f3 tim2 configuration

i am using stm8s cosmic c compiler and i am trying to config tim2 for 350uS(350uS should be the pulse width). As per the reference manual tim4 is 16-bit with prescaler factor of 32768. I will be using internal 2mhz clock my calculations are as…
nyl
  • 1
0
votes
1 answer

How to fix the non-updating clock on a tkinter weather app?

Clock on tkinter doesn't work I created a weather app, but the clock just constantly stand still the time, how to fix it??? current = datetime.now(home) real = current.strftime("%d/%m/%Y\n%H:%M:%S %p") clock.config(text=real) root.after(1000,…
0
votes
0 answers

InvalidSignatureException when calling EKS cluster

I am using ubuntu app on windows. Using this ubuntu app, I was connecting to EKS cluster till yesterday. Suddenly, it stopped working due to below error. I searched lot and found many answers related to ntpd and system clock but not sure why this…
user2315104
  • 2,378
  • 7
  • 35
  • 54
0
votes
1 answer

C#: How can I make the clock work correctly?

I'm working on a new GitHub repository called Charms Bar Port using Visual Studio 2022 that requires the UI to show a clock and date at the lower left, as seen on this image. However, the clock seems to never update regardless of the presence…
0
votes
1 answer

clock_cast on gcc 12.2.1

I must use the utc_clock<> feature of C++20. Before, I was using the date library from Howard Hinnant date library but now I want to use the standard C++20 features (and not the date library). The GCC version is: gcc version 12.2.1 20221020…
jke
  • 1
  • 1
0
votes
0 answers

Keep the system clock in 24 hr mode

In my function below I am using the system clock/time to create various strings. Is there a way to make my code stay in 24 hr mode? This way if the time is in the afternoon my string will start with PM. string TODO::timeID() { List l; …
0
votes
2 answers

If a computer changes geographic location, will the system clock still return the UTC accurately?

Suppose someone travels from a country with UTC to +/- X hr timezone. Their device such as a computer or a mobile, is completely switched off during this journey. Upon reaching the destination, once the device is switched ON without internet, Will…
iammilind
  • 68,093
  • 33
  • 169
  • 336
0
votes
1 answer

Is it possible to have an Android app that Replace the clock on lockscreen with my own?

I want to code my own clock, replacing the one on the lock screen. Not to sure how to do this? I only designed app that displays data from firebase. Is there a way to display using flutter or java, information like a clock or a graph on the lock…
soda.city
  • 3
  • 1
0
votes
0 answers

How can I force Javascript to sync Date.now() to the system clock

I have a Javascript application running on a server that is referencing Date.now() from a Worker thread. When the system clock on the machine changes I have a (non-JS) application that notices this and accounts for the change. But the Javascript app…
William
  • 20,150
  • 8
  • 49
  • 91
0
votes
2 answers

How to disable clock sync in docker-desktop VM for MACOS

Using macos Catalina and docker desktop. The time of the conteiners perfectly syncs with the time in Vm Docker Desktop. But I need to test one conteiner with date in the future. I dont want to advance the clock of my mac because of iCloud…
Tarmac
  • 95
  • 5
0
votes
1 answer

Flags getting randomly set in RCC(Reset and Clock Control register) on Power On

I am working on MM32Spin05 MCU. After power on, all 6 flags in the RCC(Reset and Clock Control) register are getting set. After a reset, the default value of this register should be 0X XC000000. But I am observing it as 0X FC000000. I am not doing…
sukhbir1996
  • 156
  • 8
0
votes
1 answer

Why does clock_gettime not compile when using C99?

Why does this C code compile in C99? What should I read to learn more? I can't post unless I add more text so here's some nonsense text because I don't think there's anything else to say $ cat m.c #include #include int main() { …
Eric Stotch
  • 141
  • 4
  • 19
0
votes
1 answer

commit calender not in sync with PC time

The commit calendar in https://github.com/ is not in sync with my PC clock. my PC clock is showing the right time. if in my PC clock its 2nd of April and I contribute something it shows that i have contributed it on 1st of April . This is being…
MrHola21
  • 301
  • 2
  • 8
0
votes
1 answer

Accuracy of STM32L496 generated square wave

I have an STM32L496 MCU, and I want to generate a 3MHz square wave. I would like to know what would be the accuracy of this signal. The system clock frequency of this MCU is 80MHz. If I use a prescaler of 80MHz / 3MHz = 26.667 (can I do that?), then…
0
votes
3 answers

How do I convert a string back into a time_point?

I am taking a system_clock time_point, converting it to a string, and then saving it to a configuration file. Now I want to read that config file and turn the string back into a time point so that I can calculate the difference in time between two…
palacetrading
  • 71
  • 1
  • 11
1 2 3
8 9