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
2 answers

I can't get SetSystemTime to work in Windows Vista using C# with Interop (P/Invoke)

I'm having a hard time getting SetSystemTime working in my C# code. SetSystemtime is a kernel32.dll function. I'm using P/invoke (interop) to call it. SetSystemtime returns false and the error is "Invalid Parameter". I've posted the code below. I…
Dave
  • 8,095
  • 14
  • 56
  • 99
0
votes
1 answer

Cocos2dx save image with system time for Android

I am using this code for saving a screenshot Size size = Director::getInstance()->getWinSize(); auto renderTexture = RenderTexture::create((size.width/5)*3.98, (size.height/5)*3.45, Texture2D::PixelFormat::RGBA8888); …
0
votes
1 answer

How to synchronize windows system time using on board embedded controller?

I would like to create a time provider for my windows pc (Windows 7) that syncronizes time based on an embedded controller(EC) on my main board. The EC brings in time and sets specific addresses with the current time which is GPS synchronized. I…
TWhite
  • 737
  • 2
  • 11
  • 33
0
votes
1 answer

S-function storing system time in a variable

What am I trying to do is to save in a variable (global or constant) the system time. I am using a S-function in Simulink. The problem is that when I store the value of the system time in a variable it is continuously incrementing so when I do the…
0
votes
1 answer

How get the thread id without system call? and does getting the system time takes less, more or the same as getting the thread id using a system call?

I my application I have a log wrapper class and macros like LOG_DEBUG(message), LOG_ERROR(message) and so on. When I use for example LOG_DEBUG(message) it prints the time, the message and the letter D which stands for debug. What I would like to do…
e271p314
  • 3,841
  • 7
  • 36
  • 61
0
votes
1 answer

SystemTimeToTzSpecificLocalTime - how to get utc offset and time zone

I have a need to convert a utc system time to local time and find the corresponding utc offset. I wouldn't mind getting the time zone also. As far as I can tell, SystemTimeToTzSpecificLocalTime returns no information on these. Anyone have a good…
Mike D
  • 2,753
  • 8
  • 44
  • 77
0
votes
1 answer

Keep windows time in a python clock while changing windows time.

I am looking for a way to basically create a clock to store the current windows time. The reason I need a separate clock is I am changing the windows system time using python. So I would like to set the windows clock back to what the time should be…
LL.
  • 129
  • 1
  • 12
0
votes
2 answers

Is there any other time service than system time that we can make use?

I am developing a desktop app and it have an trial period after which application will get expire. Currently I am using system time. Since user can easily change it, I thought its not a good way to follow. Is there any other time service that is…
Umesh
  • 1,242
  • 1
  • 13
  • 24
0
votes
1 answer

Tring to format milliseconds in SYSTEMTIME to only show the first two digits

Hi I'm trying to format a string so that I am able to get the system time to be HH:MM:SS:MM(Milliseconds) I've written this SYSTEMTIME time; GetLocalTime(&time); line.Format("%02d:%02d:%02d:%02d \n" ,time.wHour, time.wMinute, time.wSecond,…
user2134127
  • 135
  • 1
  • 2
  • 9
0
votes
1 answer

winVerifyTrust is crushed when the sys time is not accurate

I am developing a C# .net 3.5 application. I am trying to verify a file signature by using WinVerifyTrust. I also want a revocation check so I set the following parametrs of the WinTrustData. FdwRevocationChecks =…
user844541
  • 2,868
  • 5
  • 32
  • 60
0
votes
1 answer

Speed up the Simulation using "apply"

I have a matrix z (3 x 20000). Consider each row as a random variable and each column as one simulation. I wrote the following function in R using apply command to find the empirical cumulative distribution function (EMP.CDF) in 3 dimensions. This…
Stat
  • 671
  • 7
  • 19
0
votes
1 answer

Change system time using any language

I want to change system time on window os but i don't want to use kernel32.dll because my os will write an log entry @@ Pls help me.
fox
  • 55
  • 1
  • 2
  • 4
0
votes
1 answer

Pascal - Win32api SYSTEMTIME struct wYear is always 97

I've got a function that returns a SYSTEMTIME. function GetFileDate : SYSTEMTIME; //Stdcall; var CheckFile: Long; FileTime: LPFILETIME; FileTimeReturn: LPFILETIME; SystemTimeReturn: LPSYSTEMTIME; begin CheckFile :=…
Name McChange
  • 2,750
  • 5
  • 27
  • 46
0
votes
3 answers

30 days Difference on SYSTEMTIME

I am willing to ask if anyone has some good algorithm (or ways) to check if two SYSTEMTIME variable has a diff of 30 days or longer? Thank you
Allan Jiang
  • 11,063
  • 27
  • 104
  • 165
-1
votes
3 answers

MS Windows system date time and an apps licence

I plan to check MS Windows system date time periodically to see if the app licence is expired. So what if the user will increase system timer always? And in this case is any way to know real date-time? What if computer is offline but in some…
NoWar
  • 36,338
  • 80
  • 323
  • 498
1 2 3
11
12