|
Meta tags:
description=#85432 was closed slightly prematurely in my view. While #21712 fixes things for datetime.date.strftime, as mentioned in #85432 (comment), the problem also exists for datetime.time.strftime, as well as datetime.datetime.fromtimestamp:
Works with the C implementation:
import time, datetime
datetime.time().strftime(format= %f )
000000
datetime.datetime.fromtimestamp(timestamp=time.time())
datetime.datetime(2022, 12, 4, 16, 23, 25, 69430)
exit()
Not with the pure-Python implementation:
import sys
sys.modules[ _datetime ] = None
import time, datetime
datetime.time().strftime(format= %f )
Traceback (most recent call last):
File stdin , line 1, in module
TypeError: time.strftime() got an unexpected keyword argument format
datetime.datetime.fromtimestamp(timestamp=time.time())
Traceback (most recent call last):
File stdin , line 1, in module
TypeError: datetime.fromtimestamp() got an unexpected keyword argument timestamp ;
Headings (most frequently used words):
datetime, navigation, uh, oh, gh, 85432, harmonise, parameter, names, between, and, pure, python, implementations, of, time, strftime, fromtimestamp, 99993, footer, diff, view, menu, repository, there, are, no, files, selected, for, viewing, filter, by, extension,
Text of the page (most frequently used words):
file (25), the (23), self (19), and (18), github (16), datetime (16), def (14), this (13), line (12), time (11), applied (11), python (11), #parameter (10), strftime (10), that (9), all (9), fromtimestamp (9), show (9), hidden (9), characters (9), unicode (9), 85432 (9), expand (9), for (9), changes (8), pure (8), diff (8), reload (8), you (7), suggestion (7), cannot (7), suggestions (7), code (7), fmt (7), open (7), cls (7), sign (7), not (6), while (6), names (6), timestamp (6), number (6), bidirectional (6), security (5), comments (5), commit (5), format (5), learn (5), about (5), view (5), 2022 (5), issue (5), was (5), lib (5), return (5), loading (5), your (5), can (4), please (4), pull (4), from (4), change (4), may (4), what (4), review (4), more (4), next (4), rst (4), down (4), none (4), there (4), files (4), harmonise (4), between (4), support (4), copilot (4), community (3), navigation (3), request (3), add (3), batch (3), implementation (3), original (3), contains (3), text (3), interpreted (3), compiled (3), differently (3), than (3), appears (3), below (3), editor (3), reveals (3), desktop (3), delete (3), edit (3), misc (3), news (3), library (3), l_ehmi (3), additions (3), deletions (3), theclass (3), test (3), datetimetester (3), _fromtimestamp (3), timetuple (3), hide (3), whitespace (3), error (3), page (3), filter (3), alexwaygood (3), commits (3), 99993 (3), implementations (3), merged (3), account (3), quality (3), another (3), tab (3), window (3), refresh (3), session (3), developers (3), changelog (3), customer (3), enterprise (3), grade (3), features (3), build (3), contact (2), status (2), privacy (2), terms (2), footer (2), now (2), single (2), one (2), viewing (2), invalid (2), toggle (2), meth (2), rename (2), __format__ (2), str (2), named (2), impl (2), except (2), import (2), got (2), 2426 (2), classmethod (2), passed (2), _wrap_strftime (2), time_string (2), 1553 (2), selected (2), apply (2), split (2), unified (2), failed (2), load (2), retry (2), jump (2), nbsp (2), extension (2), dec (2), tree (2), insights (2), projects (2), actions (2), repository (2), cpython (2), signed (2), with (2), universe (2), training (2), integrations (2), stories (2), center (2), documentation (2), business (2), fixes (2), products (2), secret (2), perform, action, share, personal, information, manage, cookies, docs, 2026, inc, right, check, back, later, queued, merge, multi, pending, reviews, has, been, marked, resolved, outdated, must, existing, order, create, valid, applying, deleted, lines, supported, only, per, subset, closed, because, were, made, annotations, notes, patch, alex, waygood, match, these, mean, assertequal, test_format, pass, unicodeencodeerror, 3528, 3534, test_strftime, test_utcfromtimestamp, test_fromtimestamp_keyword_arg, verify_field_equality, expected, test_fromtimestamp, utcfromtimestamp, _check_tzinfo_arg, timezone, info, object, well, construct, posix, like, result, 1787, 1786, utc, isinstance, _hour, _minute, _second, 1900, 1563, 1562, underlying, should, used, using, date, part, raise, valueerror, isoformat, string, exception, fromisoformat, are, conversations, clear, filters, viewed, types, impleme, bcb065d, select, changed, checks, conversation, into, main, hauntsaninja, already, clicking, agree, our, occasionally, send, related, emails, statement, service, free, its, maintainers, have, question, project, new, items, requests, issues, message, dismiss, alert, switched, accounts, out, appearance, settings, search, pricing, event, talks, workshops, partners, company, forum, events, webinars, blog, resource, connect, resources, premium, advanced, ons, trust, why, evaluate, see, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, source, latest, improvements, across, place, developer, articles, sponsors, trending, repos, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, development, environments, codespaces, analysis, enforcement, automation, ship, coding, agent, tasks, automated, work, hosting, collaboration, platform, menu, skip, content,
|