[Bps-public-commit] r17510 - Prophet/trunk/lib/Prophet

jesse at bestpractical.com jesse at bestpractical.com
Thu Jan 1 21:14:27 EST 2009


Author: jesse
Date: Thu Jan  1 21:14:27 2009
New Revision: 17510

Modified:
   Prophet/trunk/lib/Prophet/ChangeSet.pm

Log:
* added a method to form the changeset create date as a valid rfc_3339 date. This, arguably, wants to move elsewhere


Modified: Prophet/trunk/lib/Prophet/ChangeSet.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/ChangeSet.pm	(original)
+++ Prophet/trunk/lib/Prophet/ChangeSet.pm	Thu Jan  1 21:14:27 2009
@@ -245,6 +245,14 @@
         $self->original_sequence_no,
         $self->original_source_uuid;
     }
+
+sub created_as_rfc3339 {
+    my $self = shift;
+    my $c = $self->created;
+    $c =~ s/ /T/;
+    return $c."Z";
+}
+
 __PACKAGE__->meta->make_immutable;
 no Moose;
 



More information about the Bps-public-commit mailing list