Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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

Replies are listed 'Best First'.
Re^2: Version control system for the laziest of the lazy
by toolic (Bishop) 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?
What's the matter? Cat got your tongue?...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2017-06-25 21:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (571 votes). Check out past polls.