定制 ddeshar/convertthaidate 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ddeshar/convertthaidate

最新稳定版本:v1.0

Composer 安装命令:

composer require ddeshar/convertthaidate

包简介

A library to convert dates to Thai format

README 文档

README

A simple library for converting dates to Thai date format and formatting elapsed time.

Installation

You can install the library using composer:

composer require ddeshar/thai-date-converter

Usage

namespace ddeshar\convertthaidate;

require_once __DIR__ . '/vendor/autoload.php';

use ddeshar\convertthaidate\ThaiDateConverter;

$date = '2022-12-31 12:00:00';
$thaiDate = ThaiDateConverter::convert($date, 'th', true, 'dd/mm/yyyy');
echo $thaiDate;

FormatTimeConverter

The FormatTimeConverter class provides two methods for converting time values:

  • format_time: Converts the given number of seconds into a formatted time string in the format of hh:mm.
  • time_ago: Converts a given timestamp into a human-readable string indicating the time elapsed since that timestamp.

For more information and usage examples, see the FormatTimeConverter User Manual.

ThaiDateConverter

The ThaiDateConverter class provides a method for converting a date string to Thai date format.

  • convert: Converts a date string to Thai date format.

For more information and usage examples, see the ThaiDateConverter User Manual.

User Manual

For detailed information on using this library, see the User Manual.

Downloads

You can download the latest version of the package from the releases page.

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: mit
  • 更新时间: 2023-02-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固