372033392732d32256c3bc4a7aa192708493998d,homeassistant/util/dt.py,,now,#Any#,38
Before Change
if time_zone is None:
time_zone = DEFAULT_TIME_ZONE
return utcnow().astimezone(time_zone)
def as_utc(dattim):
Return a datetime as UTC time.
After Change
def now(time_zone=None):
Get now in specified time zone.
return dt.datetime.now(time_zone or DEFAULT_TIME_ZONE)
def as_utc(dattim):
Return a datetime as UTC time.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: home-assistant/home-assistant
Commit Name: 372033392732d32256c3bc4a7aa192708493998d
Time: 2015-04-28
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/util/dt.py
Class Name:
Method Name: now
Project Name: hyperspy/hyperspy
Commit Name: d9126dac9355abaf922b962bfdd5368a177545fd
Time: 2016-09-05
Author: eric.prestat@gmail.com
File Name: hyperspy/io_plugins/blockfile.py
Class Name:
Method Name: _from_serial_date
Project Name: Infinidat/infi.clickhouse_orm
Commit Name: f30cb87e6028e3b293a6b73e0449a875b4500207
Time: 2020-06-12
Author: batyrshin.niyaz@clover.global
File Name: src/infi/clickhouse_orm/fields.py
Class Name: DateTimeField
Method Name: to_python