3 ms·
Python does something similar with NamedTuple.replace(). This isn't just some weird crazy PHP thing, as much as people love to rag on PHP.
by bpicolo 12y ago
Python does something similar with NamedTuple.replace(). This isn't just some weird crazy PHP thing, as much as people love to rag on PHP.
- bobbyi_settv 12y agoMore relevantly, Python does something similar with datetime.replace(): current_minute = datetime.utcnow().replace(second=0, microsecond=0)