Fixed current time. æéã«ä¾åããAPIã®æ¯ãèãããã¹ãããå ´å, ç¾å¨æå»ãåºå®ããã°ãã¹ããRepeatableã«ä¿ã¦ã¾ã. ç¾å¨æå»ãåºå®ãã次ã®2éãã®æ¹æ³ãå®è£ ãã¾ãã. java.timeã使ã£ãæ¹æ³ï¼Java8以éï¼ java.utilã使ã£ãæ¹æ³ï¼Java7以åï¼ ãã¹ãã®éã«ç¾å¨æå»ãåºå®åããä¸æºåã¨ãã¦, ç¾å¨æå»ãè¿ãAPIãã©ããããã¡ã½ãããç¨æãã¾ã. public static long now() { return <ç¾å¨æå»ãè¿ãAPI> } ãã¹ãã®éã«ã¯åºå®æå»ãè¿ãããã«æ¯ãèããå¤æ´ãã¦ããã°, ãã®APIã«ä¾åãã¦ããã¢ã¸ã¥ã¼ã«ããããã¨ããããç¾å¨æå»ãåºå®åããã¦ããããã«è¦ãã¾ã. ç®çéæã®ããã«ã¯, now()ã¡ã½ããã常ã«ããã¼ã®epoch timeãè¿ãããã«æ¯ãèããå·®ãæ¿ããä»çµã¿ãç¨æããå¿ è¦ãããã¾ã
{{#tags}}- {{label}}
{{/tags}}