function CurrentTime(containerNode, startTimeStamp) {
    var self = this,
        timer,
        weekDays = ["Domingo", "Lunes", "Martes", "Miercoles", "Jueves", "Viernes", "Sabado"],
        months = ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "augosto", "septiembre", "octubre", "noviembre", "diciembre"],
        now = new Date(),
        prevTickTimeStamp,
        currTickTimeStamp;


    function addLeadingZero(v) {
        var s = v < 0 ? "-" : "";
        v  = Math.abs(v);

        return s + (v < 10 ? "0" + v : v);
    }

    function generateTimeString() {
        var hours = now.getUTCHours(),
            dayPart = "AM";
        if (hours > 11) {
            hours -= 12;
            dayPart = "PM";
        }
        if (hours == 0) {
            hours = 12;
        }


        return hours + ":" + addLeadingZero(now.getUTCMinutes()) + ":" + addLeadingZero(now.getUTCSeconds()) + " " + dayPart;
    }

    function secondTick() {
        currTickTimeStamp = new Date().getTime();
        now.setTime((currTickTimeStamp - prevTickTimeStamp) + startTimeStamp);

        containerNode.nodeValue = generateTimeString();
    }

    this.start = function () {
        clearInterval(timer);
        prevTickTimeStamp = (new Date()).getTime();
        timer = setInterval(secondTick, 1000);
    }
}
