zoukankan      html  css  js  c++  java
  • find中的 time 参数



    find手册中对time的解释:
    以 atime 为例:

    -atime n
           File was last accessed n*24 hours ago. When find figures out how many 24-hours periods ago the file was last accessed, any fractional part is ignored, so to match -atime +1, a file has to have been accessed as least two days ago.

      n: 当前时刻往前的第 (n + 1) 个24小时
    +n: 当前时刻往前,第 (n + 1) 个24小时之前的所有时间
    -n: 当前时刻往后,第 n 个24小时之后的所有时间
    n 表示一天 24小时的时间长度。

    加号表示之前的时间,减号表示之后的时间。



    0: 当前时刻往前的第 (1 = 0 + 1) 个 24 小时
    1: 当前时刻往前的第 (2 = 1 + 1) 个 24 小时

    +0: 当前时刻往前,第 (1 = 0 + 1) 个 24 小时之前的时间
    +1: 当前时刻往前,第 (2 = 0 + 2) 个 24 小时之前的时间

    -0: 当前时刻往后,第 0 个 24 小时之后的时间,即当前时刻之后的时间
    -1: 当前时刻往后,第 1 个 24 小时之后的时间,即当前时刻一天后的时间





    下图帮助理解:

  • 相关阅读:
    BZOJ3105 新Nim游戏 【拟阵】
    Codeforces1037G A Game on Strings 【SG函数】【区间DP】
    @RequestBody和@RequestParam
    Swagger学习
    单点登录SSO
    工作流学习
    Lombok
    PageHelper分页插件
    mybatis逆向工程介绍
    跨域请求的解决方案
  • 原文地址:https://www.cnblogs.com/goooogs/p/3798849.html
Copyright © 2011-2022 走看看