Questions tagged [systemtime]

In computer science and computer programming, system time represents a computer system's notion of the passing of time.

171 questions
0
votes
1 answer

Calendar and getTimeInMillis(). Android.

I have next code: Calendar cal = Calendar.getInstance(); cal.add(Calendar.YEAR, mYear); /2011 cal.add(Calendar.MONTH, mMonth); /04 cal.add(Calendar.DAY_OF_MONTH, mDay);/13 cal.add(Calendar.HOUR, mHour); /11 …
Divers
  • 9,531
  • 7
  • 45
  • 88
0
votes
0 answers

UWP C++/CX: Current system time & Stopwatch

So, I am creating a C++ UWP application that when opened, displays current date and time. In addition, I need to also find a way so that I can display the day of the week as well. For the day of the week, I am using this code: #include…
Richard Wei
  • 87
  • 2
  • 8
0
votes
1 answer

Why is the xtime variable in the Linux kernel updated every 1 millisecond?

In Linux, the xtime variable (a structure of type timespec inside the Linux kernel) stores the current time and date. It has two fields - tv_sec, that stores the number of seconds since January 1, 1970, and tv_nsec, storing the number of nanoseconds…
programings
  • 239
  • 1
  • 11
0
votes
1 answer

How can I change Linux system time without root privileges?

My scenario is the following: I've got a C++ app, which accesses a radio receiver to get a time signal from it and then updates system time according to the time from the radio signal. For the sake of security, the app shall not run with root…
Neppomuk
  • 1,102
  • 1
  • 11
  • 24
0
votes
0 answers

Anti-System time cheat not fully working

Whats Happening: It works for the most part except after some time after using the offline coin count is always 0. Im am trying to make it so the player cant just change their system time to try to get more money faster. I also am not trying to do…
shane
  • 342
  • 1
  • 5
  • 28
0
votes
3 answers

In .Net, how do I convert between SystemTime and FileTime?

As per https://msdn.microsoft.com/en-us/library/windows/desktop/ms724290(v=vs.85).aspx, a file time is a 64-bit value that represents the number of 100-nanosecond intervals that have elapsed since 12:00 A.M. January 1, 1601 Coordinated Universal…
user1889116
0
votes
2 answers

setting the system time with C#.NET without using kernel32.dll

Is there a way to set the system time in C#.NET without using kernel32.dll? I'm on a 64 bit system and calling the set time function seems to return "false" for me.
H2ONaCl
  • 10,644
  • 14
  • 70
  • 114
0
votes
2 answers

How to get system time?

I want to get the current year, month, day, hour, minute second, and millisecond in javascript. I am also using p5.js, if that has any helper methods. This is what I want: Year=2018 Month=4 Day=20 Hour=10 Minute=15 Second=25 Millisecond=236
mackycheese21
  • 884
  • 1
  • 9
  • 24
0
votes
1 answer

Calling the system time in on the Windows 10 IOT on Raspberry PI3

My project takes pictures and I'm looking to set the image file names as the time and date they were taken. I've programmed the camera and set up the real time clock and they both work. However, I'm now struggling to link the two. Is there a method…
0
votes
2 answers

stopwatch - how to?

I have been trying to build a stopwatch in my app which starts counting on a start button click.I want it to count from seconds then minutes, then Hour but the problem is I can't count Hour but I can count milliseconds which I do not want. is that…
0
votes
0 answers

Is there an easy way to get the system time at the instance when the java ServerSocket receives a TCP SYN?

Capturing the time after the accept() function does not indicate the time when the TCP SYN was initially received. Any help is appreciated. Thanks.
Albert
  • 1
0
votes
2 answers

Build a dataframe conditioned to time

I am trying to build a data frame named 'df' that registers the time stamp when each row was entered. 'df' should have a unique column: The data I want to input in 'df' is from data frame 'a', column 'textid': str(a$textid) chr [1:262] "xxxxx yyy"…
anitasp
  • 577
  • 4
  • 13
  • 35
0
votes
2 answers

Get creation date and time of a folder in batch script

I am trying to get the creation date and time of a specific folder in Windows. Based on this answer, I have tried the following: @echo off set path_of_folder="C:\folderA\folderB\" if exist %path_of_folder% ( echo Path exists. for /f "skip=5…
user6003691
0
votes
3 answers

VBA SystemTime - 30 days

I am working on a code from a previous developer. This code has SystemTime set up. Is there a way to get today date and minus 30 days in this format? Code Below: Public Function GetIsoTimestampTest() As String Dim st As SYSTEMTIME 'Get the local…
Pang
  • 15
  • 5
0
votes
1 answer

Does change in OS time causes change in clock chip time?

Say if a person is changing the his OS time, will that be having any impact on the clock chip time?
Arun Sudhakaran
  • 2,167
  • 4
  • 27
  • 52