Server IP : 172.24.0.40 / Your IP : 216.73.216.10 Web Server : Apache System : Linux dbweb26.ust.edu.ph 4.18.0-513.5.1.el8_9.x86_64 #1 SMP Fri Sep 29 05:21:10 EDT 2023 x86_64 User : apache ( 48) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.6/site-packages/insights_client/ |
Upload File : |
import datetime class UTC(datetime.tzinfo): """ UTC is a concrete subclass of datetime.tzinfo representing the UTC time zone. """ def utcoffset(self, dt): return datetime.timedelta(0) def tzname(self, dt): return "UTC" def dst(self, dt): return datetime.timedelta(0) def make_utc_datetime_rfc3339(): return ( datetime.datetime.utcnow().replace(microsecond=0, tzinfo=UTC()).isoformat("T") )