OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
42
app/Core/Support/FromFormat.php
Normal file
42
app/Core/Support/FromFormat.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?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;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user