khmer_date 0.0.6 copy "khmer_date: ^0.0.6" to clipboard
khmer_date: ^0.0.6 copied to clipboard

Khmer Date is plugin help you to convert date time and number to Khmer

example/lib/main.dart

import 'package:khmer_date/khmer_date.dart';

void main() {
    String _date = "2021-06-29 15:16:43";
    print(KhmerDate.date(_date,format: "dd-mm-yy",apiFormat: "yyyy-MM-dd hh:mm:ss"));
    // result: ២៩-០៦-២១
    print(KhmerDate.date(_date,format: "ddd/mmm/yyyy"));
    // result: អង្គ/មិថុនា/២០២១
    print(KhmerDate.date(_date,format: "ថ្ងៃdddd"));
    // result: ថ្ងៃអង្គារ៍
    print(KhmerDate.date(_date,format: "ថ្ងៃdddd ទីdd ខែmmm ឆ្នាំyyyy ម៉ោង hr"));
    // result: ថ្ងៃអង្គារ៍ ទី២៩ ខែមិថុនា ឆ្នាំ២០២១ ម៉ោង ០៣:១៦ ល្ងាច
    print(KhmerDate.date(_date,format: "ម៉ោង Hr"));
    // result: ម៉ោង ១៥:១៦
    print(KhmerDate.khmerNumber("1234567890 Work..."));
    // result: ១២៣៤៥៦៧៨៩០ Work...
}
16
likes
105
pub points
65%
popularity

Publisher

unverified uploader

Khmer Date is plugin help you to convert date time and number to Khmer

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter, intl

More

Packages that depend on khmer_date