Skip to content

Commit

Permalink
Updated docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
jlhitzeman committed Jul 10, 2024
1 parent 607bae6 commit 6aabd25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion distill/schemas/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def _timestamp(self):
"""
Represents a timestamp associated with the schema
Subclasses must override to provide specific timestamp value
Expected to return datetime object
Returns:
float: POSIX timestamp corresponding to datetime instance
"""
pass

3 changes: 2 additions & 1 deletion distill/schemas/userale.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def serialize_ct(self, ct: datetime):

def _timestamp(self):
"""
Returns timestamp as datetime object from userALE log's client_time field
Returns:
float: POSIX time from userALE log's client_time field
"""
return self.client_time.timestamp()

0 comments on commit 6aabd25

Please sign in to comment.