[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: two digit hour



PureBytes Links

Trading Reference Links

exactly.
Thank you Terry.

Regards
Robert

--- In amibroker@xxxxxxxxxxxxxxx, "Terry" <MagicTH@xxx> wrote:
>
> Try this link at Microsoft
> <http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore
> 98/HTML/_crt_format_specification_fields_.2d_.printf_and_wprintf_functio
> ns.asp> .
> 
> --
> 
> Terry
> 
>  
> 
> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
> Behalf Of rhoemke
> Sent: Wednesday, August 23, 2006 14:49
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: two digit hour
> 
>  
> 
> Oh my god, THAT easy?
> 
> Ooops :)
> 
>  
> 
> Thank you Thomasz.
> 
>  
> 
> I had this (info for dingo):
> 
> if(LastValue(Hour())< 10) hh = "0" + NumToStr(Hour(), 2.0); 
> 
> else hh = NumToStr(Hour(), 2.0);
> 
>  
> 
> And i still dont know why it doesn't work this way.
> 
>  
> 
> Where do i find more info about these formatting things?
> 
> I see this Note 1 in AFL reference for StrFormat but it doesn't tell
> 
> all about how to use this stuff:
> 
> Note 1: for numbers always use %f, %e or %g formatting, %d or %x will
> 
> not work because there are no integers in AFL. 
> 
>  
> 
>  
> 
> Regards
> 
> Robert (very happy :) )
> 
>  
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <groups@> wrote:
> 
> >
> 
> > StrFormat("%02.0f", Hour());
> 
> > 
> 
> > Best regards,
> 
> > Tomasz Janeczko
> 
> > amibroker.com
> 
> > ----- Original Message ----- 
> 
> > From: "rhoemke" <robert@>
> 
> > To: <amibroker@xxxxxxxxxxxxxxx>
> 
> > Sent: Wednesday, August 23, 2006 5:38 PM
> 
> > Subject: [amibroker] two digit hour
> 
> > 
> 
> > 
> 
> > > Hello,
> 
> > > 
> 
> > > i need to get a string with actual hour always in two digits to put
> it
> 
> > > into GAT Orders. 
> 
> > > Maybe i am too stupid today, but i don't get it done.
> 
> > > Someone who got a solution?
> 
> > > 
> 
> > > 
> 
> > > 
> 
> > > 
> 
> > > 
> 
> > > 
> 
> > > 
> 
> > > 
> 
> > > Please note that this group is for discussion between users only.
> 
> > > 
> 
> > > To get support from AmiBroker please send an e-mail directly to 
> 
> > > SUPPORT {at} amibroker.com
> 
> > > 
> 
> > > For other support material please check also:
> 
> > > http://www.amibroker.com/support.html
> 
> > > 
> 
> > > 
> 
> > > Yahoo! Groups Links
> 
> > > 
> 
> > > 
> 
> > > 
> 
> > > 
> 
> > > 
> 
> > > 
> 
> > > 
> 
> > >
> 
> >
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
> Please note that this group is for discussion between users only.
> 
>  
> 
> To get support from AmiBroker please send an e-mail directly to 
> 
> SUPPORT {at} amibroker.com
> 
>  
> 
> For other support material please check also:
> 
> http://www.amibroker.com/support.html
> 
>  
> 
>  
> 
> Yahoo! Groups Links
> 
>  
> 
>     http://groups.yahoo.com/group/amibroker/
> 
>  
> 
>     amibroker-unsubscribe@xxxxxxxxxxxxxxx
> 
>  
> 
>     http://docs.yahoo.com/info/terms/
>