datetime ã¢ã¸ã¥ã¼ã«ã¯ Python ã®æ¨æºã©ã¤ãã©ãªã®ä¸ã§ãã使ç¨é »åº¦ãé«ãå²ã«ç½ ãå¤ãã£ãã使ãæ¹ãé£ããã£ããããããã¾ãã¤ã±ã¦ãªãã¢ã¸ã¥ã¼ã«ã ã¨å人çã«æã£ã¦ãã¾ãã ãã㪠datetime ã¢ã¸ã¥ã¼ã«ã§ããã Python 2 ã®ããã¸ã§ã¯ãã Python 3 ã«ç§»è¡ããæã«å¤§åã³ã¼ããæ´çã§ãã¦ã¡ãã£ã¨æåããã®ã§ç´¹ä»ãã¦ããã¾ãã unixtime ã¨ã®ç¸äºå¤æ unixtime ãã datetime.datetime ã¸ã®å¤æã¯ã ãã¼ã«ã«ã¿ã¤ã ãªã.fromtimestamp() ã§ã UTC ãªã .utcfromtimestamp() é¢æ°ã§è¡ãã¾ãã >>> import time >>> from datetime import datetime >>> now = time.time() >>> now 1415542873.099776 >>>
{{#tags}}- {{label}}
{{/tags}}