Base 36 and base 62

Base 36

Translation;


     Decimal:   0         1         2         3        (tens)
                012345678901234567890123456789012345   (units)

     Base 36:   0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ

Some examples;

Decimal to Base 36
DecimalBase 36
0 0
1 1
10 A
35 Z
36 10
1296 100
46656 1000
1679616 10000
60466176 100000
21767823361000000

Base 62

Translation;


     Decimal:   0         1         2         3         4         5         6    (tens)
                01234567890123456789012345678901234567890123456789012345678901   (units)

     Base 62:   0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz

Some examples;

Decimal to Base 62
DecimalBase 62
0 0
1 1
10 A
35 Z
36 a
61 z
62 10
3844 100
238328 1000
14776336 10000
916132832 100000
568002355841000000

A base 62 epoch is often used as timestamp;


Date (UTC)              Base 62 epoch

1970-06-21 00:32:16      10000
1975-01-01 00:00:00      AfyFM
1980-01-01 00:00:00      LLwUi
1985-01-01 00:00:00      W2HDc
1990-01-01 00:00:00      giFSy
1995-01-01 00:00:00      rODiK
1999-01-12 09:20:32     100000
2000-01-01 00:00:00     124Bxg
2005-01-01 00:00:00     1CkWga
2010-01-01 00:00:00     1NQUvw
2015-01-01 00:00:00     1Y6TBI
2020-01-01 00:00:00     1imRQe