# Path: pendulum/utils.py
# def determine_period(the_date=date.today(), delta=0):
# def parse_time(time_str, input_formats=None):
# def get_total_time(seconds):
# DEFAULT_TIME_FORMATS = [
#     '%H:%M',        # 23:15         => 23:15:00
#     '%H:%M:%S',     # 05:50:21      => 05:50:21
#     '%I:%M:%S %p',  # 11:40:53 PM   => 23:40:53
#     '%I:%M %p',     # 6:21 AM       => 06:21:00
#     '%I %p',        # 1 pm          => 13:00:00
#     '%I:%M:%S%p',   # 8:45:52pm     => 23:45:52
#     '%I:%M%p',      # 12:03am       => 00:03:00
#     '%I%p',         # 12pm          => 12:00:00
#     '%H',           # 22            => 22:00:00
# ]


from django.db import models
from django.contrib.sites.models import Site
from django.contrib.auth.models import User
from datetime import datetime, date, timedelta
from pendulum import utils
            import hashlib
            import sha
        """
        if self.start_time and self.end_time:
            # only calculate when the start and end are defined
            delta = self.end_time - self.start_time
            seconds = delta.seconds - self.seconds_paused
        else:
            seconds = 0
            delta = timedelta(days=0)

        return seconds + (delta.days * 86400)

    def __total_hours(self):
        """
        Determined the total number of hours worked in this entry
        """
        return self.get_seconds() / 3600.0
    total_hours = property(__total_hours)

    def __total_time(self):
        """
        Determines the amount of time spent and return it as a string formatted
        as HH:MM:SS
        """
        return utils.get_total_time(self.get_seconds())
    total_time = property(__total_time)

    def __paused_time(self):
        """
        Returns the total time paused for this entry in HH:MM:SS format
        """

# Path: pendulum/utils.py
# def determine_period(the_date=date.today(), delta=0):
# def parse_time(time_str, input_formats=None):
# def get_total_time(seconds):
# DEFAULT_TIME_FORMATS = [
#     '%H:%M',        # 23:15         => 23:15:00
#     '%H:%M:%S',     # 05:50:21      => 05:50:21
#     '%I:%M:%S %p',  # 11:40:53 PM   => 23:40:53
#     '%I:%M %p',     # 6:21 AM       => 06:21:00
#     '%I %p',        # 1 pm          => 13:00:00
#     '%I:%M:%S%p',   # 8:45:52pm     => 23:45:52
#     '%I:%M%p',      # 12:03am       => 00:03:00
#     '%I%p',         # 12pm          => 12:00:00
#     '%H',           # 22            => 22:00:00
# ]


# Path: pendulum/models.py
from django.db import models
from django.contrib.sites.models import Site
from django.contrib.auth.models import User
from datetime import datetime, date, timedelta
from pendulum import utils
            import hashlib
            import sha

        """
        if self.start_time and self.end_time:
            # only calculate when the start and end are defined
            delta = self.end_time - self.start_time
            seconds = delta.seconds - self.seconds_paused
        else:
            seconds = 0
            delta = timedelta(days=0)

        return seconds + (delta.days * 86400)

    def __total_hours(self):
        """
        Determined the total number of hours worked in this entry
        """
        return self.get_seconds() / 3600.0
    total_hours = property(__total_hours)

    def __total_time(self):
        """
        Determines the amount of time spent and return it as a string formatted
        as HH:MM:SS
        """
        return utils.get_total_time(self.get_seconds())
    total_time = property(__total_time)

    def __paused_time(self):
        """
        Returns the total time paused for this entry in HH:MM:SS format
        """

        return utils.get_total_time(self.seconds_paused)