The Weather Forecasting Forum

Discussions about the latest in meteorology, programs, tools, and techniques
It is currently Thu Oct 19, 2017 1:57 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sat Jan 28, 2006 11:49 am 
Offline
Member

Joined: Mon Jan 23, 2006 9:33 am
Posts: 13
Location: N.Cyprus
Hi,
I am currently using the date and time tokens (@MMZ@DDZ@HHZ@NNZ) in a script, as part of the file names. I am firstly saving these files in a local directory and then uploading them to a web site. Then do the same for a different chart.

So far I haven't seen any problems using this method but just wonder what would happen if the computers clock ticked over to the next minute during the scripts run time. Would the @NNZ value change (and therefore the last part of the filename) so that the later files would have a different name?
Has anyone any experience of this method causing a problem?

I wonder if I would be better off using the SET command, so that the date and time is kept constant throughout the script.

Have tried having SET 1 @MMZ, SET 2 @DDZ, SET 3 @HHZ, SET 4 @NNZ (on seperate lines) at the top of the script and then putting $$1$$2$$3$$4 as the last part of the file names, throughout the script, but it doesn't work for me - the files end up with no date or time at the end of the name!

Any help/advice would be most appreciated, particularly if I have got the syntax wrong.
Nigel


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 28, 2006 6:40 pm 
Offline
Member

Joined: Thu Jan 19, 2006 11:11 pm
Posts: 34
Location: UK
Nigel,

Once the command sequence has been initiated (at a particular time on your PC clock), the deed is done.

The server uploading the data to you is unaware of real-time changes in your computer clock.

Les


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 29, 2006 5:19 pm 
Offline
Member

Joined: Mon Jan 23, 2006 9:33 am
Posts: 13
Location: N.Cyprus
Les,
thanks a lot for your reply - I was worrying unnecessarily then!
cheers
Nigel


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group