Files
Leantime/app/Core/Support/FromFormat.php
wangruiguo d647428529
Some checks failed
Security Audit / Composer Security Audit (push) Has been cancelled
Security Audit / NPM Security Audit (push) Has been cancelled
Security Audit / CodeQL Analysis (push) Has been cancelled
OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
2026-09-03 18:49:20 +08:00

43 lines
976 B
PHP

<?php
namespace Leantime\Core\Support;
/**
* Enum class FromFormat
*
* An enumeration class representing various formats for date and time values.
*/
enum FromFormat
{
/**
* For value containing date time string from database in UTC
*/
case DbDate;
/**
* For value containing both date and time in users preferred format and timezone separated by a space
*/
case UserDateTime;
/**
* For values containing the time string in local timezone but formatted as 24 hour time (time html fields)
*/
case User24hTime;
/**
* For values containing UTC date time with 24hour time format
*/
case Db24hTime;
/**
* for values containing only the user formatted date and timezone. Adds start of day time to string
*/
case UserDateStartOfDay;
/**
* For values containing only the user formatted date and timezone. Adds end of day time to string
*/
case UserDateEndOfDay;
}