Move timestamp_to_elapsed_string to sugar.util and add ActivityBundle.installation_time

This commit is contained in:
Tomeu Vizoso
2008-05-19 18:03:04 +02:00
parent 6c024ed529
commit 708a62c06f
3 changed files with 79 additions and 3 deletions
+5
View File
@@ -163,6 +163,11 @@ class ActivityBundle(Bundle):
"""Get the activity user visible name."""
return self._name
def get_installation_time(self):
"""Get a timestamp representing the time at which this activity was
installed."""
return os.stat(self._path).st_mtime
def get_bundle_id(self):
"""Get the activity bundle id"""
return self._bundle_id