当前位置: 首页 > news >正文

淘宝客做网站要钱吗医院网站建设报价

淘宝客做网站要钱吗,医院网站建设报价,东莞房价为什么那么高,做网站联系可以使用tick()Java中Clock类中的方法在所需的时间范围内舍入基本时钟的瞬间。此方法需要两个参数#xff0c;即基本时钟和滴答的持续时间。同样#xff0c;返回在所需持续时间内四舍五入的基本时钟时刻。演示此的程序如下所示-示例import java.time.*;public class Main {pu…可以使用tick()Java中Clock类中的方法在所需的时间范围内舍入基本时钟的瞬间。此方法需要两个参数即基本时钟和滴答的持续时间。同样返回在所需持续时间内四舍五入的基本时钟时刻。演示此的程序如下所示-示例import java.time.*;public class Main {public static void main(String[] args) {Clock bClock  Clock.systemDefaultZone();Instant i  bClock.instant();System.out.println(The Instant of the base clock is:   i);Clock c1  Clock.tick(bClock, Duration.ofSeconds(45));System.out.println(Instant of the first clock with duration 45 seconds is:   c1.instant());Clock c2  Clock.tick(bClock, Duration.ofHours(45));System.out.println(Instant of the first clock with duration 45 hours is:   c2.instant());Clock c3  Clock.tick(bClock, Duration.ofDays(45));System.out.println(Instant of the first clock with duration 45 days is:   c3.instant());}}输出结果The Instant of the base clock is: 2019-02-06T12:26:22.488ZInstant of the first clock with duration 45 seconds is: 2019-02-06T12:26:15ZInstant of the first clock with duration 45 hours is: 2019-02-05T12:00:00ZInstant of the first clock with duration 45 days is: 2019-01-14T00:00:00Z现在让我们了解上面的程序。使用方法将基本时钟的时刻四舍五入至所需的持续时间tick()。然后使用instant()方法显示。演示这的代码片段如下-Clock bClock  Clock.systemDefaultZone();Instant i  bClock.instant();System.out.println(The Instant of the base clock is:   i);Clock c1  Clock.tick(bClock, Duration.ofSeconds(45));System.out.println(Instant of the first clock with duration 45 seconds is:   c1.instant());Clock c2  Clock.tick(bClock, Duration.ofHours(45));System.out.println(Instant of the first clock with duration 45 hours is:   c2.instant());Clock c3  Clock.tick(bClock, Duration.ofDays(45));System.out.println(Instant of the first clock with duration 45 days is:   c3.instant());
http://www.zqtcl.cn/news/510736/

相关文章:

  • 中小企业网站建设与管理课件百度云济南高端网站建设公司
  • 台州企业建站程序网页设计素材网站知乎
  • wordpress视频付费谷歌seo专员是指什么意思
  • 域名续费做网站wordpress模板淘宝客模板
  • 加强政协机关网站建设深圳教育软件app开发
  • 绍兴企业网站推广Django 个人博客网站开发
  • html5 开发网站图门市建设局网站
  • wordpress 建立网站江苏电信网站备案
  • 企业网站能个人备案吗成都蜀美网站建设
  • 网站开发 占位符直播网站开发接入视频
  • 网站 易用性原则义乌进货网平台
  • 做网站的你选题的缘由是什么洛阳网站建设找汉狮
  • 常德住房和城乡建设局网站陕西省建设厅的网站
  • 国外做meta分析的网站开发公司替业主承担物业费承诺书
  • 百度收录网站定位地址wordpress 检测浏览器
  • 学习网站建设优化wordpress 轮播广告
  • 迈诺网站建设wordpress 前台注册登录
  • 网站开发市场成本免费建站网站大全
  • 四川省建设人才网站通过ip访问网站需要怎么做
  • 网站建设需要知道什么财税公司怎么找客源
  • 赣州那里有做网站的公司物流网站建设平台
  • 青色系网站北京的建筑设计公司
  • 纺织品做外贸一般在哪个网站上手机网站qq登录插件
  • 长沙做公司网站有没有免费的云服务器可以用
  • 济南专业网站优化如何制作小程序二维码
  • 建站平台软件猪八戒做网站要多少钱
  • 建设集团网站专业开发网站多少钱
  • 网站制作流程有哪些wordpress众筹
  • 网站打开是建设中手机咋建网站
  • 外贸专业网站的公司建百度网站