PHP gmmktime() လုပ်ဆောင်ချက်
ဥပမာ
GMT ရက်စွဲအတွက် Unix အချိန်တံဆိပ်ကို ပြန်ပေးပါ။ ထို့နောက် ထိုရက်စွဲ၏နေ့ရက်ကို ရှာဖွေရန် ၎င်းကို အသုံးပြုပါ။
<?php
// Prints: October 3, 1975 was on a Friday
echo "Oct 3, 1975 was on a ".date("l", gmmktime(0,0,0,10,3,1975));
?>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
gmmktime() လုပ်ဆောင်ချက်သည် GMT ရက်စွဲအတွက် Unix အချိန်တံဆိပ်ကို ပြန်ပေးသည်။
အကြံပြုချက်- ဤလုပ်ဆောင်ချက်သည် GMT ရက်စွဲကို ကိုယ်စားပြုသည်မှလွဲ၍ ဤလုပ်ဆောင်ချက်သည် mktime() နှင့် တူညီ ပါသည်။
အထားအသို
gmmktime(hour, minute, second, month, day, year, is_dst)
ကန့်သတ်တန်ဖိုးများ
Parameter | Description |
---|---|
hour | Optional. Specifies the hour |
minute | Optional. Specifies the minute |
second | Optional. Specifies the second |
month | Optional. Specifies the month |
day | Optional. Specifies the day |
year | Optional. Specifies the year |
is_dst | Optional. Parameters always represent a GMT date so is_dst doesn't influence the result. Note: This parameter is removed in PHP 7.0. The new timezone handling features should be used instead |
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | ကိန်းပြည့် Unix အချိန်တံဆိပ်ကို ပြန်ပေးသည်။ |
---|---|
PHP ဗားရှင်း- | 4+ |
PHP Changelog- | PHP 5.1- is_dst ကန့်သတ် ဘောင်အား PHP 7.0 တွင် ငြင်းပယ်ထားသည်- is_dst ကန့်သတ်ဘောင် ကို ဖယ်ရှားခဲ့သည် ။ |
❮ PHP နေ့စွဲ/အချိန် အကိုးအကား