Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 10th May 2001, 10:31   #1
Adonis
Junior Member
 
Join Date: May 2001
Posts: 5
Send a message via ICQ to Adonis
Definition of new variable called DATE
Return instalation date in format MM-DD-YYYY

Just put this code in \exehead\util.c

else if (!strcmp_nstr2(&in,"DATE"))
{
char pad = '-';
GetSystemTime(&st);
wsprintf(out,"%u%c%u%c%u",st.wMonth,pad,st.wDay,pad,st.wYear);
}
Adonis is offline   Reply With Quote
Old 11th May 2001, 10:45   #2
dbareis
Member
 
Join Date: Apr 2001
Posts: 77
HI,

I would guess that you expect this to be the very next request when you made your post, but what about the rest of the World (and from what I gather parts of America) that use DD/MM/YY, why can't it just return the local format (perhaps 12 Aug 2001)?
dbareis is offline   Reply With Quote
Old 15th May 2001, 12:08   #3
Adonis
Junior Member
 
Join Date: May 2001
Posts: 5
Send a message via ICQ to Adonis
Just an Idea

You can modify code. so DATE can be appeared as You like.
This Code is Just an Idea
Adonis is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump