2 ms·
In [1]: (8<<24) | (8<<16) | (8<<8)| 8 Out[1]: 134744072 Oh how the time just flies past. Incidentally there are 10 types of people, those who understand b
by zokier 8y ago
In [1]: (8<<24) | (8<<16) | (8<<8)| 8
Out[1]: 134744072
Oh how the time just flies past.
Incidentally there are 10 types of people, those who understand binary and those who try to write too clever headlines.
- mhneu 8y agoI laughed.
- pgeorgi 8y agothey could have used that ~4 years ago with seconds.
- d0mine 8y agoExactly. >>> dt = pendulum.datetime(2018, 8, 12, 0, 30) # from the article >>> born = dt.subtract(years=8, months=8, days=8, hours=8) >>> born.add(seconds=int(ipaddress.ip_address('8.8.8.8'))) <Pendulum [2014-03-12T05:24:32+00:00]>