Archive: Get Local Time


Get Local Time (timebased Shareware)
Hi @ all!

Im working on a timebased shareware version of my Program, but I unfortunatly don't know how to use the "Get Local Time"

-- -- -- -- -- -- -- --

I have solved the problem :D

i'm still working on a sample code with description, I'll attach it in a new post

Off Topic:

What about creating a search function to find all users from country xyz ... would be nice, no idea if it would be really useful...whatever

-L-B-


you can query the country in the registry

HKCU\Control Panel\International\Locale


How to use:

str = required
(str|str2) = required - choose one of those strings
[str] = optional
[str|str2] = optional - choose one of those strings

Call CurrentDateToSeconds
Pop "variable" - Variable (to year) (i.e. $1)
Pop "variable" - Variable (to month) (i.e. $1)
Pop "variable" - Variable (to day of week) (i.e. $1)
Pop "variable" - Variable (to day) (i.e. $1)
Pop "variable" - Variable (to hour) (i.e. $1)
Pop "variable" - Variable (to minute) (i.e. $1)
Pop "variable" - Variable (to second) (i.e. $1)
Pop "variable" - Variable (to milisecond) (i.e. $1)
Example:
Call CurrentDateToSeconds
Pop $0
Pop $1
Pop $9
Pop $2
Pop $9
Pop $9
Pop $9
Pop $9
StrCpy $9 ""
$0 = Year
$1 = Month
$2 = Day
$9 = A variable to put "trash", as you need to pop to somewhere... so I cleaned at the end.

Use StrCpy to use the values returned the way you want.

One Question
ok, just one more question:

is it possible to check if the value of a var is bigger or smaller than a number (like $R1<5 => $R1 smaller than 5) and
proceed if true?

Off Topic:

Sorry Yatosho I didn't complain this exactly... I meant
What about creating a search function in the FORUM to find all users from country xyz ...

sorry my mistake


Use IntCmp or IntCmpU.


sorry
sorry folks... I surveyed that

thx kichik

-- -- -- -- --
Edit:

There is more to do than I thought, but I think I'll have it within the next days