# Luxon三方库 **Repository Path**: nutpi/luxon-ohlibrary ## Basic Information - **Project Name**: Luxon三方库 - **Description**: working with dates and times - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-02-02 - **Last Updated**: 2024-11-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Luxon Luxon is a library for working with dates and times in arkts. 本库由 [白晓明](https://gitee.com/lazyboy),完成迁移。 ## 一、下载安装 ``` ohpm install @nutpi/luxon ``` OpenHarmony ohpm 环境配置等更多内容,请参考[如何安装 OpenHarmony ohpm 包](https://gitee.com/openharmony-tpc/docs/blob/master/OpenHarmony_har_usage.md) ## 二、使用 ```js import { DateTime } from '@nutpi/luxon'; ``` 参数`options`结构为: ```js import { DateTime } from '@nutpi/luxon'; @Entry @Component struct Index { @State message: string = '坚果派'; build() { Row() { Column() { Text(DateTime.now().toString()) .fontSize(20) .fontWeight(FontWeight.Bold) } .width('100%') } .height('100%') } } ``` ## 三、开源协议 本项目基于 [Apache](https://gitee.com/nutpi/relationship/blob/master/library/LICENSE) ,请自由地享受和参与开源。感谢[moment](https://github.com/moment/luxon#readme)。 本库由 [白晓明](https://gitee.com/lazyboy),完成迁移。