Python ã«ãããã¿ã¤ã ã¾ã¼ã³ã®åãæ±ãã«ã¤ãã¦ãæ£ç¢ºã«æ¸ããã¨ããã¨ãªããªãé£ããã®ã§ãä»åãã£ããã¨ã ãã·ã³ãã«ã«æ¸ãããã¨æãã¾ãã Python ã§ã¿ã¤ã ã¾ã¼ã³ãæ±ãã®ã¯é£ãããæ¨æºã©ã¤ãã©ãªã«ã¯ tzinfo ã¨ããã¿ã¤ã ã¾ã¼ã³ã表ãããã®æ½è±¡ã¯ã©ã¹ãç¨æããã¦ããã ããªã®ã§ããããç¶æ¿ãã¦èªåã§ã¿ã¤ã ã¾ã¼ã³ç¨ã®ã¯ã©ã¹ãå®ç¾©ããå¿ è¦ããããä¾ãã°ãããªæãã ã from datetime import timedelta, tzinfo class JST(tzinfo): def utcoffset(self, dt): return timedelta(hours=9) def dst(self, dt): return timedelta(0) def tzname(self, dt): return 'JST' ç¾å¨ã®æ¥æãæ¥æ¬æ¨æºæ(JST)ã§åå¾ãããå ´åã¯ããã
{{#tags}}- {{label}}
{{/tags}}