@classmethod<EOL><INDENT>def feeling_lucky(cls, obj):<DEDENT>
if isinstance(obj, six.string_types):<EOL><INDENT>return cls.from_str(obj)<EOL><DEDENT>elif isinstance(obj, six.integer_types) and obj <= MAX_POSIX_TIMESTAMP:<EOL><INDENT>return cls.from_posix_timestamp(obj)<EOL><DEDENT>elif isinstance(obj, datetime):<EOL><INDENT>return cls.from_datetime(obj)<EOL><DEDENT>else:<EOL><INDENT>raise ValueError(<EOL>"<STR_LIT>".format(obj)<EOL>)<EOL><DEDENT>
Tries to convert given object to an UTC timestamp is ms, based
        on its type.