ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    Dayjs 计算时间差

    Jul 12, 20222 min read
    dayjs(endTime).diff(dayjs(startTime), 'years')
     
    dayjs(endTime).diff(dayjs(startTime), 'months')
     
    dayjs(endTime).diff(dayjs(startTime), 'days')  
     
    dayjs(endTime).diff(dayjs(startTime),'minutes' )
     
    dayjs(endTime).diff(dayjs(startTime), 'seconds')
    

    相关文章

    Tiktoken Go 的实现仓库

    Tiktoken-go是一个用Go语言实现的OpenAI tiktoken库,用于将文本转换为OpenAI模型可识别的token,支持多种编码和模型,并提供缓存机制以优化性能。

    Centos 安装 Brew

    在CentOS系统上安装Brew的命令是运行 `/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"`。

    使用 WebStorm Docker 工具

    本文介绍了如何在 WebStorm 中安装和配置 Docker 工具,创建 Dockerfile,构建、运行和调试 Docker 容器。

    Vue.js设计与实现 (霍春阳) (z-lib.org)

    《Vue.js设计与实现》是由霍春阳所著,关于Vue.js框架的书籍,可在z-lib.org上获取,相关链接为https://t.me/v2ex_post/33909。

    Landlock 安全模块支持在 UML (User-Mode Linux)

    Landlock security module enables fine-grained security policy enforcement in User-Mode Linux (UML) to protect against threats and unauthorized access.