from datetime import timedelta, datetime


class Clock(object):

    # standard API functions
    def __init__(self, *args):
        pass

    def __repr__(self, *args):
        return 'Current Time: ' + self.now()

    def __str__(self, *args):
        return self.__repr__()

    # Functions that manipulate the current time
    def now(self, *args):
        return datetime.now().strftime('%I:%M %p')

    def nowHour(self, *args):
        return datetime.now().strftime('%I')

    def nowMinute(self, *args):
        return datetime.now().strftime('%M')

    def nowAmPm(self, *args):
        return datetime.now().strftime('%p')

    def nowPlus(self, delta=None, hours=0, minutes=0, *args):
        if delta is None:
            delta = timedelta(hours=hours, minutes=minutes)
        plustime = datetime.now() + delta
        return plustime

    # http interface to this class
    http = {'hour': {'get': nowHour},
            'minute': {'get': nowMinute},
            'ampm': {'get': nowAmPm},
            'get': now}

881fd31ce2756a9b0504fe2639fb3fe614750f4c
<mask token>


class Clock(object):

    def __init__(self, *args):
        pass

    def __repr__(self, *args):
        return 'Current Time: ' + self.now()

    def __str__(self, *args):
        return self.__repr__()
    <mask token>
    <mask token>

    def nowMinute(self, *args):
        return datetime.now().strftime('%M')

    def nowAmPm(self, *args):
        return datetime.now().strftime('%p')
    <mask token>
    <mask token>

<mask token>


class Clock(object):

    def __init__(self, *args):
        pass

    def __repr__(self, *args):
        return 'Current Time: ' + self.now()

    def __str__(self, *args):
        return self.__repr__()
    <mask token>
    <mask token>

    def nowMinute(self, *args):
        return datetime.now().strftime('%M')

    def nowAmPm(self, *args):
        return datetime.now().strftime('%p')

    def nowPlus(self, delta=None, hours=0, minutes=0, *args):
        if delta is None:
            delta = timedelta(hours=hours, minutes=minutes)
        plustime = datetime.now() + delta
        return plustime
    <mask token>

<mask token>


class Clock(object):

    def __init__(self, *args):
        pass

    def __repr__(self, *args):
        return 'Current Time: ' + self.now()

    def __str__(self, *args):
        return self.__repr__()

    def now(self, *args):
        return datetime.now().strftime('%I:%M %p')
    <mask token>

    def nowMinute(self, *args):
        return datetime.now().strftime('%M')

    def nowAmPm(self, *args):
        return datetime.now().strftime('%p')

    def nowPlus(self, delta=None, hours=0, minutes=0, *args):
        if delta is None:
            delta = timedelta(hours=hours, minutes=minutes)
        plustime = datetime.now() + delta
        return plustime
    <mask token>

<mask token>


class Clock(object):

    def __init__(self, *args):
        pass

    def __repr__(self, *args):
        return 'Current Time: ' + self.now()

    def __str__(self, *args):
        return self.__repr__()

    def now(self, *args):
        return datetime.now().strftime('%I:%M %p')

    def nowHour(self, *args):
        return datetime.now().strftime('%I')

    def nowMinute(self, *args):
        return datetime.now().strftime('%M')

    def nowAmPm(self, *args):
        return datetime.now().strftime('%p')

    def nowPlus(self, delta=None, hours=0, minutes=0, *args):
        if delta is None:
            delta = timedelta(hours=hours, minutes=minutes)
        plustime = datetime.now() + delta
        return plustime
    <mask token>

from datetime import timedelta, datetime


class Clock(object):

    # standard API functions
    def __init__(self, *args):
        pass

    def __repr__(self, *args):
        return 'Current Time: ' + self.now()

    def __str__(self, *args):
        return self.__repr__()

    # Functions that manipulate the current time
    def now(self, *args):
        return datetime.now().strftime('%I:%M %p')

    def nowHour(self, *args):
        return datetime.now().strftime('%I')

    def nowMinute(self, *args):
        return datetime.now().strftime('%M')

    def nowAmPm(self, *args):
        return datetime.now().strftime('%p')

    def nowPlus(self, delta=None, hours=0, minutes=0, *args):
        if delta is None:
            delta = timedelta(hours=hours, minutes=minutes)
        plustime = datetime.now() + delta
        return plustime

    # http interface to this class
    http = {'hour': {'get': nowHour},
            'minute': {'get': nowMinute},
            'ampm': {'get': nowAmPm},
            'get': now}
