Claudine,

At one time it was documented.  With the format
function for dates the following was available

dd = day as in 01, 02, ... 28, 29, 30, 31 depending on
month
mm = month as in 01, 02 ... 12
mmm = month as in Jan, Feb, ... Nov, Dec
mmm+ = month as in January, February, ... December
yy   = year as in 05 of 2005
yyyy = year as in 2005
www = 3 letter day abbrev as in Mon, Tue, ... Sun
www+ = full day name as in Monday, Tuesday, ... Sunday


At some point in v6.5 and v7.x you could also use the
following for time
hh = hour  (24 hour clock unless you use ap keyword)
mm = minute
ss = second
ap = AM or PM depending on time (12 hour clock )

any characters other than the above were used
unchanged.

I often use the following to create a part of a file
name.  

set var filetouse text =
(FORMAT(.#DATE,'YYYYMMDD')+FORMAT(.#TIME,'HHMMSS.EXT'))
To get for example "20050705112533.EXT"
which incidently helps order file names in date
sequence.

These also work with the WRITE command syntax. And in
the DOS version Format sections for columns/variables
of reports.

Jim Bentley




--- Claudine Robbins <[EMAIL PROTECTED]>
wrote:

> What a cool function Jim!  And not documented
> either...  What a gem to add
> to our bag of tricks!  Thanks for sharing :)
> 
> > -----Original Message-----
> > From: [email protected] [mailto:[EMAIL PROTECTED]
> On Behalf Of James
> > Bentley
> > Sent: Tuesday, July 05, 2005 9:20 AM
> > To: RBG7-L Mailing List
> > Subject: [RBG7-L] - Re: Re Winzip Problem
> > 
> > Charles,
> > 
> > You should checkout the "LAUNCH" command at
> > www.rsyntax.com.  Proper use of that commmand
> should
> > solve you problem.
> > 
> > Also the command "SET VAR ZIPOUT TEXT =
> > (FORMAT(.#DATE,'BKDDMMM.ZIP')) could be used to
> > replace all of the code you listed before the ZIP
> > line.  When I executed this command today July 5,
> 2005
> > variable ZIPOUT = BK05Jul.ZIP.
> > 
> > Jim Bentley
> > American Celiac Society
> > 
> > 
> > --- [EMAIL PROTECTED] wrote:
> > 
> > > After loading the latest version of 7.1 I can
> not
> > > longer zip my file to a
> > > backup directory.  I have been using the Winzip
> > > program below
> > >
> > > WZZip.exe
> > >
> > > This is the code that I have been using.
> > >
> > >   SET VAR vdate = .#DATE
> > >   SET VAR vfile1 TEXT = ('BK')
> > >   SET VAR vfile2 TEXT = +
> > >   ((CTXT(IDAY(.vdate)))+ (TMON +
> > >   (.vdate)))
> > >   SET VAR vfile2 TEXT = (SGET(.vfile2,5,1))
> > >   SET VAR zipout TEXT = (.vfile1+.vfile2
> +'.zip')
> > >   ZIP  wzzip &zipout MUSIC*.rb*
> > >   copy BK*.zip c:\music\backup
> > >
> > > Do I get the feeling that I have to purchase the
> > > RBTI zip program?
> > >
> > > Chuck Conrad
> > >
> > >
> > >
> > >
> > >  <http://www.karconind.com/>       Supporting the
> Arts
> > > in Indonesia
> > >
> > >
> > > Conrad, Charles Dean
> > > President Commissioner    PT KarCon Indonesia
> > > Jl. Pondok Betung Raya
> > > Jakarta 15221
> > > Indonesia
> > > [EMAIL PROTECTED]
> > > tel:
> > > fax:
> > > mobile:   +62 21 7388-2068
> > > +62 21 7388-2068
> > > +62 81 189-7086
> > >
> > >
> > >
> > >
> >
>
<https://www.plaxo.com/add_me?u=8589960975&v0=51669&k0=1500330442>
> > > Add me
> > > to your address book...
> > > <http://www.plaxo.com/signature> Want a
> signature
> > > like this?
> > >
> > >
> > 
> > 
> > Jim Bentley
> > American Celiac Society
> > [EMAIL PROTECTED]
> > tel: 1-504-737-3293
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> 
> 


Jim Bentley
American Celiac Society
[EMAIL PROTECTED]
tel: 1-504-737-3293


                
____________________________________________________ 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com

Reply via email to