Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Filenames based on timestamp

by krazken (Scribe)
on Jun 27, 2002 at 13:36 UTC ( [id://177705]=note: print w/replies, xml ) Need Help??


in reply to Filenames based on timestamp

The easiest way that comes off the top of my head would be to gather the date/time information down to as far as you can, and then apply a tie breaker byte to the filename that you increment with each file you create. This way in the instance that you do create files within the given interval, you have the tiebreaker to ensure that the filename will be unique. Obviously the tiebreaker does not have to be 1 byte, but that is just how I have done it in the past. Hope this gives you a couple hints. thanks krazken

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://177705]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-05-26 18:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found