[ Ctrl + z ] Off

Dokumentasi Class Date

Fungsi Date
Kelas Date menyediakan metode yang membantu Anda dalam pengelolaan Date and Time

Code Results
tatiyeNet::Format("Time");
1596983319
tatiyeNet::Format("Time-zone:Makassar");
10:28:39pm
tatiyeNet::Format("Time-ds:H:i:sa");
22:28:39pm
tatiyeNet::Format("Time-ds:H:i:a");
22:28:pm
tatiyeNet::Format("Time-ds:H:i:s");
22:28:39
tatiyeNet::Format("Time-ds:H:i");
22:28
tatiyeNet::Format("Time-ds:h:i:s A");
10:28:39 PM
tatiyeNet::Format("Date");
09 Aug 2020
tatiyeNet::Format("IN");
09/08/2020
tatiyeNet::Format("EN");
2020/08/09
tatiyeNet::Format("Date-ds:d/m/Y");
09/08/2020
tatiyeNet::Format("Date-ds:d");
09
tatiyeNet::Format("Date-ds:m");
08
tatiyeNet::Format("Date-ds:Y");
2020
tatiyeNet::Format("Date-time");
09 Aug 2020 22:28:39pm
tatiyeNet::Format("Date-time:IN");
09/08/2020 22:28:39pm
tatiyeNet::Format("Date-time:EN");
2020/08/09 22:28:39pm
tatiyeNet::Format("DT-:d-m-Y h:i:s A");
09-08-2020 10:28:39 PM
tatiyeNet::Format("DT-day");
Sun
tatiyeNet::Format("DT-month");
Aug
tatiyeNet::Format("DT-hari");
Minggu
tatiyeNet::Format("DT-bulan");
Agustus
tatiyeNet::Format("DT-year");//year,tahun
2020
tatiyeNet::Format("DT-hari@h:i:s A");
Minggu, 10:28:39 PM
tatiyeNet::Format("DT-day@h:i:s A");
Sun, 10:28:39 PM
tatiyeNet::Format("DT-IN");
09 Agustus 2020
tatiyeNet::Format("DT-EN");
Aug 09 2020
tatiyeNet::Format("DT-hariIN");
Minggu, 09 Agustus 2020
tatiyeNet::Format("DT-hariIN@ jam@h:i:s A");
Minggu, 09 Agustus 2020 jam 10:28:39 PM

Strtotime

tatiyeNet::Format("hari-IN-12/04/2020");
Minggu
tatiyeNet::Format("hari-EN-2020/04/12");
Sunday
tatiyeNet::Format("bulan-IN-12/04/2020");
April
tatiyeNet::Format("bulan-EN-2020/04/12");
Apr
tatiyeNet::Format("bln-IN-12/04/2020");
04
tatiyeNet::Format("bln-EN-2020/04/12");
04
tatiyeNet::Format("tahun-2020/04/12");
2020
tatiyeNet::Format("tgl-IN-12/04/2020");
12
tatiyeNet::Format("tgl-EN-2020/04/12");
12
tatiyeNet::Format("setmonth-IN-12/04/2020");
12 April 2020
tatiyeNet::Format("setmonth-EN-2020/04/12");
2020 Apr 12
tatiyeNet::Format("setday-IN-12/04/2020");
Minggu, 12 April 2020
tatiyeNet::Format("setday-EN-2020/04/12");
Sunday, 12 Apr 2020
tatiyeNet::Format("stamp-1586703531");
12 April pukul 22:58
tatiyeNet::Format("addition-IN-14/05/2020","+1 days");
15/05/2020
-, +, days, month, year

© 2020 Designed by Tatiye.net