KhmerDate class
អ្នកបង្កើត លោក ហ៊ិន រដ្ឋា ទូរស័ព្ទ 096 659 2250 បង្កើតកម្មវិធីទូរស័ព្ទ បទពិសោធន៍ Flutter, ReactNative
ទម្រង់កាលបរិច្ឆេទ ឧៈ "2021-06-29T13:15:36" បើខុសពីទម្រង់នេះសូមប្ដូរ apiFormat
apiFormat: សម្រាប់កំណត់លើទម្រង់កាលបរិច្ឆេទពី API ដែលខុសពីទម្រង់កាលបរិច្ឆេទខាងលើ "yyyy-MM-ddThh:mm:ss" លោកអ្នកត្រូវប្ដូរតាមទម្រង់កាលរិច្ឆេទលោកអ្នកវិញ ឧៈ "2021/06/29 13:15:36"
ដូចនេះ apiFormat: "yyyy/MM/dd hh:mm:ss" កាលបរិច្ឆេទខុសទម្រង់ វានឹងធ្វើឲ្យតម្លៃ ពេលវេលាចេញលទ្ធផលខុស
format: "ថ្ងៃdddd ទីdd ខែmmm ឆ្នាំyyyy ម៉ោង hr" លទ្ធផល (ថ្ងៃអង្គារ៍ ទី២៩ ខែមិថុនា ឆ្នាំ២០២១ ម៉ោង ០១:១៥ ល្ងាច)
format: "hr" 12 hour, "Hr" 24 hour
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
date(
String date, {String format = "dd-mm-yyyy", String? apiFormat}) → String - ទម្រង់កាលបរិច្ឆេទ ឧៈ "2021-06-29T13:15:36" បើខុសពីទម្រង់នេះសូមប្ដូរ apiFormat
-
isToday(
String date) → bool - ទម្រង់កាលបរិច្ឆេទ ឧៈ "2021-06-29T13:15:36" ប្រសិនបើកាលបរិច្ឆេទថ្ងៃនេះនឹង return trun ក្រៅពីនេះនឹង return false
-
khmerNumber(
String number) → String - ឧៈ12345 => ១២៣៤៥