ddeshar/convertthaidate 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱: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
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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