In computer science and computer programming, system time represents a computer system's notion of the passing of time.
Questions tagged [systemtime]
171 questions
7
votes
3 answers
Given Date, Get Day of Week - SYSTEMTIME
Is it possible to determine the day of the week, using SYSTEMTIME, if a date (month-day-year) is provided or is this structure one-way only?
What is the most lightweight way to accomplish what I am asking if SYSTEMTIME cannot do it (using Win32)?
user195488
6
votes
3 answers
Measure user time or system time in Ruby without Benchmark or time
Since I'm doing some time measurements at the moment, I wondered if it is possible to measure the user time or system time without using the Benchmark class or the command line utility time.
Using the Time class only reveals the wall clock time, not…

Florian Pilz
- 8,002
- 4
- 22
- 30
6
votes
2 answers
Time in a Docker container
I have a couple of questions around time in a Docker container:
Does a Docker container (e.g. ubuntu:16.04) have the same time as the host machine when it is started?
Will the time be kept in sync, if I don't interfere?
Will the time of the…

Martin Thoma
- 124,992
- 159
- 614
- 958
5
votes
1 answer
getting difference between two SYSTEMTIME variable
For Example my code is as follows.
void main()
{
SYSTEMTIME LocalTime_Start = { 0 };
GetLocalTime( &LocalTime_Start );
SYSTEMTIME LocalTime_End = { 0 };
// Some program Statements
GetLocalTime(…

Kundan
- 291
- 1
- 3
- 8
5
votes
1 answer
Changing the System Time in Google Colaboratory
I would like to use my local time as the System Time in Google Colab, but I believe by default it is set to UTC time as indicated here:
Current Date Format
How am I able to change the system time to my local time?

saaabotage
- 53
- 1
- 5
4
votes
2 answers
Change time by clicking on . bat in windows
I am developing a system where several i'm having to change date to Sunday February 06 3:30:50 AM.
Is there any way to create a .bat so that by clicking on it, the system automatically changes

Noor
- 19,638
- 38
- 136
- 254
4
votes
2 answers
How is the result of the Delphi NOW function affected by the option to "Adjust clock for daylight saving changes"
I realise this question could have been answered by writing some test code. I'm not lazy, I just thought that the answer might be generally useful.
I have an app that has generated a large amount of data with records that were stamped with the…

rossmcm
- 5,493
- 10
- 55
- 118
4
votes
3 answers
More accurate equivalent for "time" command in Linux, regarding sys- and usertime?
I am in the following situation:
I want to determine the sys- and usertime of little snippets of (PHP- and C++) code. Obviously, I could use the "time" binary in Linux, but given the fact that these snippets run so fast, the normal (or even verbose)…

Stobbej
- 1,080
- 9
- 17
4
votes
8 answers
most efficient way to get current time/date/day in C
What is the most efficient way of getting current time/date/day/year in C language? As I have to execute this many times, I need a real efficient way.
I am on freeBSD.
thanks in advance.

hari
- 9,439
- 27
- 76
- 110
4
votes
3 answers
How to populate SYSTEMTIME value?
On Windows Mobile (but I guess it's the same on Windows) in a native C++ app, how would I go about setting a SYSTEMTIME structure correctly? Assuming I have
int year, month, dayOfMonth, hour, minute, second;
I obviously should set the wHour,…

Steven
- 1,364
- 1
- 12
- 16
3
votes
1 answer
Refresh access token before it expires using refresh token
I am working on an application, which uses OAuth - Token based authentication.
This is how the flow looks like, considering we have the access and refresh token.
Api call -> intercepter appends access-token -> api returns 200
Api call ->…

Ritt
- 3,181
- 3
- 22
- 51
3
votes
2 answers
Find offset between system-time and Internet time using Python
How would you find the time offset between the local OS system-time and Internet time from various Internet time sources using Python?

Jonathan Livni
- 101,334
- 104
- 266
- 359
3
votes
3 answers
Difference between java.util.Date and java.time.LocalDate in java
I want to know the difference between java.util.Date and java.time.LocalDate.
I've heard that java.time.LocalDate brings user environment time, not server time, but I want to know if it's true.
In other words, if a user manipulates his or her system…

limsrs
- 121
- 1
- 3
- 10
3
votes
1 answer
How to access as_secs in SystemTime? "no method named `as_secs` found for enum Result"
I'm using std::time::SystemTime. My goal is to make a struct with a field called timestamp and store the time in seconds.
I saw this example which works correctly:
use std::time::SystemTime;
match…

Diego
- 449
- 1
- 6
- 16
3
votes
0 answers
Looking for ideas on how to slow down or speed up time in a single process
First, let me start with I'm interested in reverse engineering the in game timing of both offline and online games, and experimenting with the dependencies these games have on local system clocks and - if it's online - the online clock, and seeing…

Q The First Timelord
- 69
- 7