pike.git / lib / modules / Val.pmod / module.pmod

version» Context lines:

pike.git/lib/modules/Val.pmod/module.pmod:832:    variant protected void create(int year, int month, int day) {    create((["year":year - 1900, "mon":month - 1, "mday":day]));    }    variant protected void create(this_program copy) {    days = [int]copy->days;    }    variant protected void create(Timestamp copy) {    days = copy->nsecs / (24 * 3600 * NANOSECONDS) - (copy->nsecs < 0);    }    variant protected void create(mapping(string:int) tm) { -  create(mktime(tm + (["timezone":0]))); +  create(mktime(tm + (["isdst":0, "timezone":0])));    }    variant protected void create(int unix_time) {    days = unix_time / (24 * 3600);    }    variant protected void create(float unix_time) {    create((int)unix_time);    }    variant protected void create() {    }