@strnow

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

GeoffC
Posts: 10
Joined: Tue Sep 14, 2010 12:23 am

@strnow

Postby GeoffC » Mon Jan 16, 2012 4:46 pm

I wonder if there's a bug in this function? This test program always displays a time where the hours and seconds are correct, but minutes is always set to "01". I'm using v7.2, 5th Jan 2012 build.

Code: Select all

for !i = 1 to 1000 %time = "Time no is: "+@strnow("HH:MM:SS") + ". Continue?" if @uiprompt(%time,"YN") = 2 then stop endif next
If not can you advise what I'm doing wrong?

tks
Geoff

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13603
Joined: Tue Sep 16, 2008 5:38 pm

Re: @strnow

Postby EViews Gareth » Mon Jan 16, 2012 4:49 pm

"MM" is for month (currently January, or 01).

"MI" is for minute.

GeoffC
Posts: 10
Joined: Tue Sep 14, 2010 12:23 am

Re: @strnow

Postby GeoffC » Tue Jan 17, 2012 12:44 am

duh!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest