System::Alloc 16 System::Call "kernel32::GetLocalTime(isR0)" System::Call "*$R0(&i2.R1,&i2.R2,&i2,&i2.R4)" System::Free $R0 MessageBox MB_OK "$R1年$R2月$R4日"
System::Alloc 16 System::Call "kernel32::GetLocalTime(isR0)" System::Call "*$R0(&i2,&i2,&i2,&i2,&i2.R5,&i2.R6,&i2.R7) System::Free $R0 MessageBox MB_OK "$R5:$R6:$R7"
System::Alloc 16 System::Call kernel32::GetLocalTime(isR0) System::Call *$R0(&i2.R1,&i2.R2,&i2,&i2.R4,&i2.R5,&i2.R6,&i2.R7,&i2.R8) System::Free $R0 MessageBox MB_OK "$R1年$R2月$R4日,$R5:$R6:$R7.$R8"
(不过,个人觉得更好的是直接调用 nsisdt 插件:http://nsis.sourceforge.net/NSIS-Date_plug-in)
转载:本文转载自:http://www.cnblogs.com/juin/archive/2012/07/09/2583814.html