Module ImportFrom alias alias Import alias Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str If CompareGt NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore Call NameLoad Str Assign NameStore SubscriptLoad Call AttributeLoad Call NameLoad Call AttributeLoad NameLoad attr attr Index Num If CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore SubscriptLoad NameLoad Slice Num Num Assign NameStore TupleLoad NameLoad NameLoad Delete NameDel Assign NameStore ListLoad Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args defaults body Return Call NameLoad Call NameLoad Str decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body If UnaryOpNot CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return SubscriptLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Slice NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Assign NameStore AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpAdd Call NameLoad Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpMod BinOpAdd Call NameLoad Call AttributeLoad NameLoad attr Num Num Assign AttributeStore NameLoad attr Num Assign NameStore Call NameLoad Str Assign AttributeStore NameLoad attr BinOpAdd Num Call NameLoad BinOpDiv BinOpSub NameLoad BinOpDiv Call AttributeLoad NameLoad attr Num Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore AttributeStore NameLoad attr BinOpAdd Call NameLoad Call AttributeLoad NameLoad attr Num Assign NameStore AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpMod BinOpAdd Call NameLoad Call AttributeLoad NameLoad attr Num Num Assign AttributeStore NameLoad attr IfExp CompareEq NameLoad BinOpMult Num Call AttributeLoad NameLoad attr Num Num Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Assign NameStore BinOpDiv Call NameLoad BinOpSub Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Assign NameStore BinOpAdd NameLoad BinOpMult Num BinOpSub NameLoad NameLoad Assign AttributeStore NameLoad attr BinOpAdd Num Call NameLoad BinOpDiv NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore BinOpSub SubscriptLoad NameLoad Index Num Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad Str Assign NameStore BinOpDiv Call NameLoad Str Num Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr Num If CompareEq SubscriptLoad NameLoad Index Num Num body If CompareEq BinOpSub NameLoad NameLoad NameLoad body Return NameLoad Return BinOpAdd NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad orelse If BoolOpAnd UnaryOpNot Call NameLoad NameLoad NameLoad CompareNotEq Call NameLoad NameLoad Num body Raise Call NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore BinOpAdd BinOpSub Num BinOpMod BinOpAdd Call AttributeLoad NameLoad attr Num Num Num Assign NameStore Call NameLoad Str Assign NameStore BinOpSub Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If CompareLt NameLoad Num body Assign NameStore Num orelse Assign NameStore BinOpAdd Num Call NameLoad BinOpDiv NameLoad Num FunctionDef arguments args NameParam defaults body If CompareEq NameLoad Str body Return Str orelse If CompareEq NameLoad Str body Return SubscriptLoad Call NameLoad Str Slice Num orelse If CompareEq NameLoad Str body Return SubscriptLoad NameLoad Index Call NameLoad Str orelse If CompareEq NameLoad Str body Return SubscriptLoad Call NameLoad Str Slice Num orelse If CompareEq NameLoad Str body Return SubscriptLoad NameLoad Index BinOpSub NameLoad Num orelse If CompareEq NameLoad Str body Return Call AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return BinOpMod Str NameLoad orelse If CompareEq NameLoad Str body Return BinOpMod Str NameLoad orelse If CompareEq NameLoad Str body Return BinOpMod Str BinOpMod NameLoad Num orelse If CompareEq NameLoad Str body Return BinOpMod Str NameLoad orelse If CompareEq NameLoad Str body Return BinOpMod Str NameLoad orelse If CompareEq NameLoad Str body Return BinOpMod Str NameLoad orelse If CompareEq NameLoad Str body If CompareLt NameLoad Num body Return Str Return Str orelse If CompareEq NameLoad Str body Return BinOpMod Str NameLoad orelse If CompareEq NameLoad Str body Raise Call NameLoad BinOpMod Str NameLoad orelse If CompareEq NameLoad Str body Return BinOpMod Str BinOpMod BinOpAdd NameLoad Num Num orelse If CompareEq NameLoad Str body Return BinOpMod Str NameLoad orelse If CompareEq NameLoad Str body Return BinOpMod Str Call AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return BinOpMod Str Call AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return BinOpMod Str BinOpMod NameLoad Num orelse If CompareEq NameLoad Str body Return BinOpMod Str NameLoad orelse If CompareEq NameLoad Str body Raise Call NameLoad BinOpMod Str NameLoad Return BinOpAdd Str NameLoad decorator_list Assign NameStore Str Assign NameStore NameLoad Assign NameStore Call NameLoad Str Expr Call NameLoad Str While NameLoad body Expr Call NameLoad Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Return BinOpMod Str TupleLoad SubscriptLoad SubscriptLoad NameLoad Index BinOpMod BinOpAdd SubscriptLoad NameLoad Index Num Num Num Slice Num SubscriptLoad NameLoad Index BinOpSub SubscriptLoad NameLoad Index Num Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults NameLoad body Return Call NameLoad Call NameLoad NameLoad decorator_list Expr Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body TryExcept body Return Call NameLoad Call NameLoad Str handlers ExceptHandler body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign NameStore Call NameLoad Call NameLoad Call NameLoad Str Assign AttributeStore NameLoad attr Num Return NameLoad handlers ExceptHandler body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list
N/A __pyjamas__ JS debugger N/A math N/A timezone N/A JS 60 * (new Date(new Date()['getFullYear'](), 0, 1))['getTimezoneOffset']() N/A altzone N/A JS 60 * (new Date(new Date()['getFullYear'](), 6, 1))['getTimezoneOffset']() N/A N/A altzone timezone N/A N/A d timezone N/A timezone altzone N/A altzone d N/A _dst N/A timezone altzone N/A d N/A JS (new Date(new Date()['getFullYear'](), 0, 1)) N/A d N/A N/A N/A N/A str N/A N/A d toLocaleString split N/A -1 N/A N/A N/A d N/A 0 ( N/A N/A d N/A d N/A 1 -1 N/A tzname N/A d None N/A d N/A __c__days N/A Sunday Monday Tuesday Wednesday Thursday Friday Saturday N/A __c__months N/A January February March April May June July August September October November December time N/A N/A N/A N/A N/A N/A float N/A JS new Date()['getTime']() / 1000.0 N/A struct_time N/A object N/A N/A n_fields 9 N/A n_sequence_fields 9 N/A n_unnamed_fields 0 N/A tm_year None N/A tm_mon None N/A tm_mday None N/A tm_hour None N/A tm_min None N/A tm_sec None N/A tm_wday None N/A tm_yday None N/A tm_isdst None __init__ N/A N/A self ttuple N/A None N/A N/A N/A N/A ttuple None N/A N/A N/A self tm_year N/A ttuple N/A 0 N/A N/A self tm_mon N/A ttuple N/A 1 N/A N/A self tm_mday N/A ttuple N/A 2 N/A N/A self tm_hour N/A ttuple N/A 3 N/A N/A self tm_min N/A ttuple N/A 4 N/A N/A self tm_sec N/A ttuple N/A 5 N/A N/A self tm_wday N/A ttuple N/A 6 N/A N/A self tm_yday N/A ttuple N/A 7 N/A N/A self tm_isdst N/A ttuple N/A 8 N/A __str__ N/A N/A self N/A N/A N/A t N/A N/A self tm_year N/A self tm_mon N/A self tm_mday N/A self tm_hour N/A self tm_min N/A self tm_sec N/A self tm_wday N/A self tm_yday N/A self tm_isdst N/A N/A N/A t __str__ N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A self __str__ N/A __getitem__ N/A N/A self idx N/A N/A N/A N/A N/A N/A self tm_year N/A self tm_mon N/A self tm_mday N/A self tm_hour N/A self tm_min N/A self tm_sec N/A self tm_wday N/A self tm_yday N/A self tm_isdst N/A idx N/A __getslice__ N/A N/A self lower upper N/A N/A N/A N/A N/A N/A self tm_year N/A self tm_mon N/A self tm_mday N/A self tm_hour N/A self tm_min N/A self tm_sec N/A self tm_wday N/A self tm_yday N/A self tm_isdst N/A lower upper N/A N/A gmtime N/A N/A t N/A None N/A N/A N/A t None N/A N/A t N/A time N/A date N/A JS new Date(@{{t}}*1000) N/A tm N/A struct_time N/A tm_year N/A tm tm_year N/A int N/A N/A date getUTCFullYear N/A N/A tm tm_mon N/A N/A int N/A N/A date getUTCMonth 1 N/A N/A tm tm_mday N/A int N/A N/A date getUTCDate N/A N/A tm tm_hour N/A int N/A N/A date getUTCHours N/A N/A tm tm_min N/A int N/A N/A date getUTCMinutes N/A N/A tm tm_sec N/A int N/A N/A date getUTCSeconds N/A N/A tm tm_wday N/A N/A N/A int N/A N/A date getUTCDay 6 7 N/A N/A tm tm_isdst 0 N/A startOfYear N/A JS new Date('Jan 1 '+ @{{tm_year}} +' GMT+0000') N/A N/A tm tm_yday N/A 1 N/A int N/A N/A t N/A N/A N/A startOfYear getTime 1000 86400 N/A tm N/A localtime N/A N/A t N/A None N/A N/A N/A t None N/A N/A t N/A time N/A date N/A JS new Date(@{{t}}*1000) N/A dateOffset N/A N/A date getTimezoneOffset N/A tm N/A struct_time N/A tm_year N/A tm tm_year N/A int N/A N/A date getFullYear N/A tm_mon N/A tm tm_mon N/A N/A int N/A N/A date getMonth 1 N/A tm_mday N/A tm tm_mday N/A int N/A N/A date getDate N/A N/A tm tm_hour N/A int N/A N/A date getHours N/A N/A tm tm_min N/A int N/A N/A date getMinutes N/A N/A tm tm_sec N/A int N/A N/A date getSeconds N/A N/A tm tm_wday N/A N/A N/A int N/A N/A date getDay 6 7 N/A N/A tm tm_isdst N/A N/A timezone N/A 60 N/A N/A date getTimezoneOffset 0 1 N/A startOfYear N/A JS new Date(@{{tm_year}},0,1) N/A startOfYearOffset N/A N/A startOfYear getTimezoneOffset N/A startOfDay N/A JS new Date(@{{tm_year}},@{{tm_mon}}-1,@{{tm_mday}}) N/A dt N/A N/A float N/A N/A N/A startOfDay getTime N/A N/A startOfYear getTime 1000 N/A dt N/A dt N/A 60 N/A startOfYearOffset dateOffset N/A N/A tm tm_yday N/A 1 N/A int N/A dt 86400.0 N/A tm N/A mktime N/A N/A t N/A N/A N/A mktime(tuple) -> floating point number
    Convert a time tuple in local time to seconds since the Epoch. N/A tm_year N/A t N/A 0 N/A tm_mon N/A N/A t N/A 1 1 N/A tm_mday N/A t N/A 2 N/A tm_hour N/A t N/A 3 N/A tm_min N/A t N/A 4 N/A tm_sec N/A t N/A 5 N/A date N/A JS new Date(@{{tm_year}}, @{{tm_mon}}, @{{tm_mday}}, @{{tm_hour}}, @{{tm_min}}, @{{tm_sec}}) N/A utc N/A N/A JS Date['UTC'](@{{tm_year}}, @{{tm_mon}}, @{{tm_mday}}, @{{tm_hour}}, @{{tm_min}}, @{{tm_sec}}) 1000 N/A ts N/A N/A N/A date getTime 1000 N/A N/A N/A t N/A 8 0 N/A N/A N/A N/A ts utc timezone N/A N/A ts N/A N/A ts _dst N/A ts N/A strftime N/A N/A fmt t N/A None N/A N/A N/A t None N/A N/A t N/A localtime N/A N/A N/A N/A N/A isinstance t struct_time N/A N/A len t 9 N/A N/A N/A TypeError argument must be 9-item sequence, not float N/A tm_year N/A t N/A 0 N/A tm_mon N/A t N/A 1 N/A tm_mday N/A t N/A 2 N/A tm_hour N/A t N/A 3 N/A tm_min N/A t N/A 4 N/A tm_sec N/A t N/A 5 N/A tm_wday N/A t N/A 6 N/A tm_yday N/A t N/A 7 N/A date N/A JS new Date(@{{tm_year}}, @{{tm_mon}} - 1, @{{tm_mday}}, @{{tm_hour}}, @{{tm_min}}, @{{tm_sec}}) N/A startOfYear N/A JS new Date(@{{tm_year}},0,1) N/A firstMonday N/A N/A 1 N/A N/A N/A N/A startOfYear getDay 6 7 7 N/A firstWeek N/A JS new Date(@{{tm_year}},0,@{{firstMonday}}) N/A weekNo N/A N/A N/A date getTime N/A N/A firstWeek getTime N/A N/A weekNo 0 N/A N/A weekNo 0 N/A N/A weekNo N/A 1 N/A int N/A weekNo 604800000 format N/A N/A c N/A N/A N/A N/A c % N/A N/A % N/A N/A N/A c a N/A N/A N/A N/A format A N/A 3 N/A N/A N/A c A N/A N/A N/A __c__days N/A N/A format w N/A N/A N/A c b N/A N/A N/A N/A format B N/A 3 N/A N/A N/A c B N/A N/A N/A __c__months N/A N/A tm_mon 1 N/A N/A N/A c c N/A N/A N/A N/A date toLocaleString N/A N/A N/A c d N/A N/A N/A %02d tm_mday N/A N/A N/A c H N/A N/A N/A %02d tm_hour N/A N/A N/A c I N/A N/A N/A %02d N/A tm_hour 12 N/A N/A N/A c j N/A N/A N/A %03d tm_yday N/A N/A N/A c m N/A N/A N/A %02d tm_mon N/A N/A N/A c M N/A N/A N/A %02d tm_min N/A N/A N/A c p N/A N/A N/A tm_hour 12 N/A N/A AM N/A PM N/A N/A N/A c S N/A N/A N/A %02d tm_sec N/A N/A N/A c U N/A N/A N/A NotImplementedError N/A strftime format character '%s' c N/A N/A N/A c w N/A N/A N/A %d N/A N/A tm_wday 1 7 N/A N/A N/A c W N/A N/A N/A %d weekNo N/A N/A N/A c x N/A N/A N/A %s N/A N/A date toLocaleDateString N/A N/A N/A c X N/A N/A N/A %s N/A N/A date toLocaleTimeString N/A N/A N/A c y N/A N/A N/A %02d N/A tm_year 100 N/A N/A N/A c Y N/A N/A N/A %04d tm_year N/A N/A N/A c Z N/A N/A N/A NotImplementedError N/A strftime format character '%s' c N/A N/A % c N/A N/A result N/A remainder fmt N/A re_pct N/A JS /([^%]*)%(.)(.*)/ N/A N/A JS var a, fmtChar; N/A remainder N/A N/A N/A JS 
        @{{!a}} = @{{re_pct}}['exec'](@{{remainder}});
        if (!@{{!a}}) {
            @{{result}} += @{{remainder}};
            @{{remainder}} = false;
        } else {
            @{{result}} += @{{!a}}[1];
            @{{!fmtChar}} = @{{!a}}[2];
            @{{remainder}} = @{{!a}}[3];
            if (typeof @{{!fmtChar}} != 'undefined') {
                @{{result}} += @{{format}}(@{{!fmtChar}});
            }
        }
         N/A N/A str result N/A asctime N/A N/A t N/A None N/A N/A N/A t None N/A N/A t N/A localtime N/A N/A %s %s %02d %02d:%02d:%02d %04d N/A N/A N/A __c__days N/A N/A N/A N/A t N/A 6 1 7 N/A 3 N/A __c__months N/A N/A N/A t N/A 1 1 N/A t N/A 2 N/A t N/A 3 N/A t N/A 4 N/A t N/A 5 N/A t N/A 0 N/A ctime N/A N/A t N/A None N/A N/A N/A asctime N/A localtime t N/A N/A N/A JS 
var _DATE_FORMAT_REGXES = {
    'Y': new RegExp('^-?[0-9]{4}'),
    'y': new RegExp('^-?[0-9]{2}'),
    'd': new RegExp('^[0-9]{2}'),
    'm': new RegExp('^[0-9]{2}'),
    'H': new RegExp('^[0-9]{2}'),
    'M': new RegExp('^[0-9]{2}'),
    'S': new RegExp('^[0-9]{2}')
}

/*
 * _parseData does the actual parsing job needed by `strptime`
 */
function _parseDate(datestring, format) {
    var parsed = {};
    for (var i1=0,i2=0;i1<format['length'];i1++,i2++) {
        var c1 = format[i1];
        var c2 = datestring[i2];
        if (c1 == '%') {
            c1 = format[++i1];
            var data = _DATE_FORMAT_REGXES[c1]['exec'](datestring['substring'](i2));
            if (!data['length']) {
                return null;
            }
            data = data[0];
            i2 += data['length']-1;
            var value = parseInt(data, 10);
            if (isNaN(value)) {
                return null;
            }
            parsed[c1] = value;
            continue;
        }
        if (c1 != c2) {
            return null;
        }
    }
    return parsed;
}

/*
 * basic implementation of strptime. The only recognized formats
 * defined in _DATE_FORMAT_REGEXES (i['e']. %Y, %d, %m, %H, %M)
 */
function strptime(datestring, format) {
    var parsed = _parseDate(datestring, format);
    if (!parsed) {
        return null;
    }
    // create initial date (!!! year=0 means 1900 !!!)
    var date = new Date(0, 0, 1, 0, 0);
    date['setFullYear'](0); // reset to year 0
    if (typeof parsed['Y'] != "undefined") {
        date['setFullYear'](parsed['Y']);
    }
    if (typeof parsed['y'] != "undefined") {
        date['setFullYear'](2000+parsed['y']);
    }
    if (typeof parsed['m'] != "undefined") {
        if (parsed['m'] < 1 || parsed['m'] > 12) {
            return null;
        }
        // !!! month indexes start at 0 in javascript !!!
        date['setMonth'](parsed['m'] - 1);
    }
    if (typeof parsed['d'] != "undefined") {
        if (parsed['m'] < 1 || parsed['m'] > 31) {
            return null;
        }
        date['setDate'](parsed['d']);
    }
    if (typeof parsed['H'] != "undefined") {
        if (parsed['H'] < 0 || parsed['H'] > 23) {
            return null;
        }
        date['setHours'](parsed['H']);
    }
    if (typeof parsed['M'] != "undefined") {
        if (parsed['M'] < 0 || parsed['M'] > 59) {
            return null;
        }
        date['setMinutes'](parsed['M']);
    }
    if (typeof parsed['S'] != "undefined") {
        if (parsed['S'] < 0 || parsed['S'] > 59) {
            return null;
        }
        date['setSeconds'](parsed['S']);
    }
    // new Date()['setFullYear'](2010,01,31) returns March 3
    if (typeof parsed['m'] != "undefined" && date['getMonth']() != parsed['m']-1) {
        // date['getMonth']() and parsed['m'] don't correspond
        return null;
    }
    return date;
};
 _strptime N/A N/A datestring format N/A N/A N/A N/A N/A N/A float N/A JS strptime(@{{datestring}}['valueOf'](), @{{format}}['valueOf']())['getTime']() / 1000.0 N/A N/A N/A N/A N/A ValueError N/A Invalid or unsupported values for strptime: '%s', '%s' N/A datestring format N/A strptime N/A N/A datestring format N/A N/A N/A N/A N/A tt N/A localtime N/A float N/A JS strptime(@{{datestring}}['valueOf'](), @{{format}}['valueOf']())['getTime']() / 1000.0 N/A N/A tt tm_isdst -1 N/A tt N/A N/A N/A N/A N/A ValueError N/A Invalid or unsupported values for strptime: '%s', '%s' N/A datestring format N/A