Skip to main content

Convert English Number to Burmese Number

Project description

Burmese Number Converter

about

author : Han Zaw Nyein
email  : hanzawnyineonline@gmail.com

Date, Datetime

import datetime
from burmese_number_converter import convert_burmese_date_time, BURMESE_NUMBERS

if __name__ == '__main__':
    print(BURMESE_NUMBERS[0], BURMESE_NUMBERS[1], BURMESE_NUMBERS[2], BURMESE_NUMBERS[3])

    current_date_time = datetime.datetime.today()
    converted_date_time_string = convert_burmese_date_time(datetime_obj=current_date_time, str_format_time="%m/%d/%Y, %H:%M:%S")
    print(converted_date_time_string)

    converted_date_string = convert_burmese_date_time(datetime_obj=current_date_time, str_format_time="%m/%d/%Y")
    print(converted_date_string)

    current_date = datetime.date.today()
    converted_date_obj_input_string = convert_burmese_date_time(datetime_obj=current_date, str_format_time="%m/%d/%Y")
    print(converted_date_obj_input_string)
# output
၀ ၁ ၂ ၃
၁၁/၀၄/၂၀၂၂, ၂၃:၄၁:၁၇
၁၁/၀၄/၂၀၂၂
၁၁/၀၄/၂၀၂၂

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

burmese_number_converter-1.0.0.tar.gz (2.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page