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

Print system time when getting data from a local IP server

I'm trying to debug embedded software using the method described here https://devzone.nordicsemi.com/question/83524/how-to-use-rtt-viewer-or-similar-on-gnulinux/ What the debugger does is setup a localhost server that provides all the printf like…
EarthLord
  • 111
  • 1
  • 4
0
votes
2 answers

C# SetSystemTime (WIN API) hooking

I need restriction for time changes coming from different sources. The best way, as i think, is to hook WINAPI function SetSystemTime (and maybe SetLocalTime). I tried to hook this by using EasyHook library with injection in all running processes,…
Ivan
  • 33
  • 1
  • 6
0
votes
1 answer

Is there a way to find age of an Android device

I want to find out how long the device has been used. I dont want the uptime i want the actual time elapsed from the device first boot
Sudhasri
  • 1,264
  • 16
  • 19
0
votes
1 answer

time steps in sub and write value to console

Some sub's in my VB.Net program take a lot of time, and I do not understand why. I'd like to start a counter at the beginning of the sub and write the Milliseconds passed for each row in the console. I tried using a Timer and resetting it after each…
sharkyenergy
  • 3,842
  • 10
  • 46
  • 97
0
votes
1 answer

VS2010 refuses to build when system time moved backward

I have problem with the windows time and date of my computer, which randomly go backward to when the machine turned on. When this happens, anything I changed in the source files will not be compiled and vs just says "xxx.exe - 0 errors,0 warning" or…
Exbo
  • 21
  • 2
0
votes
1 answer

Laravel 5.1 Timezone, Timestamp and System time is different. What could go wrong? Any solution please

I have this in my routes.php date_default_timezone_set('Asia/Manila'); but it doest work.
John Arzaga
  • 103
  • 1
  • 1
  • 11
0
votes
1 answer

Detect time format in Windows time setting i.e 12hr or 24hr and use that in Java

I want to know what time format has the user chosen in his computer say in his Windows time setting like 12 hr or 24 hour format. I want to detect that and use that as the time format in my Java application. Note: I am aware of the SimpleDateFormat…
0
votes
1 answer

syncing a video position with system time

I just started working with html5 & co. (not a bloody beginner, but it's been some time..) and I need some advice for creating my project. Setup: I have a 24 hours video, which should be displayed in fullscreen on a html site (offline usage only).…
peaks
  • 1
  • 1
0
votes
1 answer

Capturing an event when the Android system time is updated from the network

If a device has been configured with Settings->Date & time->Automatic date & time it will update it's system time when the device connects to the network (and the network can provide a time). Is there an event that I can subscribe to, so that I know…
William
  • 20,150
  • 8
  • 49
  • 91
0
votes
1 answer

SYSTEMTIME in FireMonkey

Can you help me. I have a code, but it don't work on Android (who would doubt that). procedure SetTime(sTime: string); var vsys: _SYSTEMTIME; begin GetLocalTime(vsys); vsys.wYear := StrToInt(Copy(sTime,7,4)); vsys.wMonth :=…
0
votes
1 answer

Perform action at a particular Date Time

I wish to execute the stop method of newCradleLoading as soon as the systemTime equals a specific value. Here my pseudo code: newtonCradleLoading.start(); Calendar rightNow = Calendar.getInstance(); Calendar en = Calendar.getInstance(); …
Aman Arora
  • 109
  • 1
  • 11
0
votes
2 answers

GetSystemTime and taskbarTime not matched

I want to change SystemTime in C#. I used SetSystemTime() and changed the System Date and Time successfully, but after changing it ,in task bar, only date is changed and task bar time doesn't change at all. And when I call GetSysemTime I can see…
m am
  • 13
  • 5
0
votes
2 answers

How to get boolean of whether or not Date & Time Syncronization from server is enabled

In Windows, when you are updating your date and time through a server where is this variable stored? I am writing a PowerShell script that requires that I check this variable but I can't seem to find out how to derive the data.
JoeCodeCreations
  • 660
  • 2
  • 6
  • 19
0
votes
2 answers

Get & Set system time in C#

I found one piece of sample code from web forum. When I began to learn it. I found the output is very strange. Why does the code can't work well? It always go forward 8 hours when I run the code below. VS2005 and WinXP used.Thank you. class…
Nano HE
  • 9,109
  • 31
  • 97
  • 137
0
votes
2 answers

Modify system date using Win32SetSystemTime in C# (only date, no hour, minute, second)

Is possible to set the system time (using Win32SetSystemTime) without changing hour, minute and second (only year, month and day)? Here is my code. As you can see, I commented falseData.Hour, falseData.Minute and falseData.Second because I don't…