Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Version control system for the laziest of the lazy

by Anonymous Monk
on Apr 06, 2011 at 07:08 UTC ( #897676=note: print w/ replies, xml ) Need Help??


in reply to Version control system for the laziest of the lazy

I prefer a iso 8601

$ perl -MDateTime -le"print DateTime->now->strftime( q!%F-%H-%M-%S%z! +);" 2011-04-06-07-04-11+0000 $ perl -MDateTime -le"print DateTime->now( qw[ time_zone local ] )->st +rftime( q!%F-%H-%M-%S%z! );" 2011-04-06-00-04-29-0700
or double digit suffix
foo.pl-00 foo.pl-01
With a iso 8601 timestamp at the top of the file


Comment on Re: Version control system for the laziest of the lazy
Select or Download Code
Re^2: Version control system for the laziest of the lazy
by toolic (Chancellor) on Apr 06, 2011 at 13:06 UTC
    Use whatever timestamp or string that suits you. That ISO format string is compatible with POSIX::strftime (so there's no need for the non-Core DateTime).
    With a iso 8601 timestamp at the top of the file
    If you are implying that the contents of each copied file should be modified, that is far beyond the scope of this simple tool.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2014-12-29 07:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (185 votes), past polls