This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Function ThaiTime(InTime, Optional TimeType As Integer = 1, Optional CType As Integer = 0) | |
'Version 4.0 | |
'แปลงเลขเวลาเป็นคำอ่าน | |
'TimeType รองรับได้ 6 แบบ | |
'1 ระบบ 24 ชั่วโมงแบบราชการ | |
'2 ระบบ 6 ชั่วโมงแบบ 2490 | |
'3 ระบบ 6 ชั่วโมงแบบสมียใหม่ 2535 | |
'4 ระบบ 24 ชั่วโมงแบบทหาร | |
'5 ระบบ 8 ยาม แบบอยุธยา 2076 | |
'6 ระบบ 8 ยาม แบบรัตนโกสินทร์ 2443 |