Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   NSIS-Date to $Variable ? (http://forums.winamp.com/showthread.php?t=174177)

Yathosho 26th March 2004 09:26

NSIS-Date to $Variable ?
 
File /oname=$TEMP\nsisdt.dll nsisdt.dll
StrCpy $0 "%Y-%m-%d_%Hh%Mm%Ss"
CallInstDLL "$TEMP\nsisdt.dll" currentdate

works until i replace $0 with $TimeStamp. strangely enough StrCpy $TimeStamp $0 doesnt work either.

evilO 26th March 2004 11:27

Hi !

Well, as stated in the doc:

Quote:

Step 1:
Generate a format string using the following:

...

Step 2:
Call currentdate

Step 3:
The current date is returned into $0.

What do you mean by :

Quote:

strangely enough StrCpy $TimeStamp $0 doesnt work either.
Do you make the "StrCpy" before or after the plugin call ?

evilO/Olive

Yathosho 26th March 2004 21:21

using StrCpy after executing the plugin, the new variable will not contain the actual numbers, but the syntax (%Y-%m-%d_%Hh%Mm%Ss in this case)


All times are GMT. The time now is 04:26.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.