1 package SL::Webdav::VersionScheme::Timestamp;
4 use parent qw(Rose::Object);
10 sub extract_regexp { qr/\d{8}_\d{6}/ }
12 sub cmp { sub { $_[0]->version cmp $_[1]->version } }
14 sub first_version { goto &get_current_formatted_time }
16 sub next_version { goto &get_current_formatted_time }
18 sub keep_last_version {
22 sub get_current_formatted_time {
23 return POSIX::strftime('%Y%m%d_%H%M%S', localtime());