PHP - DateTime Object - Full PHP 8 Tutorial

Поділитися
Вставка
  • Опубліковано 11 лис 2024

КОМЕНТАРІ • 103

  • @ינוןאלבז-כ1ז
    @ינוןאלבז-כ1ז Рік тому +11

    I have been in the field of programming for almost 7 years, I have never seen such a comprehensive guide to times in any programming language

  • @zoba82
    @zoba82 3 роки тому +8

    Thanks for this beautiful episode! Yes, please, we'd appreciate an episode about Carbon very much!

  • @mhballa5866
    @mhballa5866 2 місяці тому

    Thank you very much Gio.
    you seem to stopped posting
    but i want to say your video are world class.
    I hope you find the time to post again in anything you are interested in teaching , i will watch it .

    • @ProgramWithGio
      @ProgramWithGio  2 місяці тому +1

      Thank you. I'm starting a new series about Laravel tomorrow

  • @Zubbee
    @Zubbee 2 роки тому +7

    Amazing lesson Gio. For someone who only knew basic procedural Php, I'm advancing. Thank you Gio.

    • @ProgramWithGio
      @ProgramWithGio  2 роки тому +1

      Thats awesome to hear, keep up the great work

  • @dawid_dahl
    @dawid_dahl 3 роки тому +3

    This is so boring, but very important. I love this video series, thank you so much for providing it for free.

  • @kerrywangamati1643
    @kerrywangamati1643 3 роки тому +4

    This episode has covered everything I needed to know about datetime in php. I rate you with five stars. Nice work.

  • @ДалирХужамурадов

    Greatest content available in youtube related to PHP. Thank you !

  • @Nekoeye
    @Nekoeye 2 роки тому +1

    I have downloaded these lessons but I'm still running all the videos in the background to support you with UA-cam algorithm. Also liking all the videos. I really want to support you on Pateron but I can't at the moment. Hopefully in near future. Thank you for creating this course. It's a gem. Hopefully you will keep working on courses like this.

  • @MrWhy07
    @MrWhy07 3 роки тому +2

    Thanks for the video. A Carbon video would be really nice.

  • @invgreat5608
    @invgreat5608 Рік тому

    Thank you!!!! Best course I've ever seen!

  • @TobiasLauner
    @TobiasLauner 2 роки тому

    The advice with the CLONE function is awesome!!! I had so often problems with that 👍🏻 Your videos are great! I love them.

  • @gonzaloalbornoz4128
    @gonzaloalbornoz4128 Рік тому

    Exceptional as always. Thanks again Gio!

  • @AlfredoGarcia-mw7os
    @AlfredoGarcia-mw7os 4 місяці тому

    This lesson is just amazing, you are awesome!

  • @alexnike3531
    @alexnike3531 3 роки тому +2

    Thanks for your videos. Awesome job! And, yeah, it''d be nice to have a video on Carbon.

  • @Vitalii-m6r
    @Vitalii-m6r Рік тому

    DateTime object can be very useful sometimes. Thanks!

  • @mampiisaotaku
    @mampiisaotaku 2 роки тому

    thanks the little personnal advice in all your videos. it helps to get a better insight. carbon in this case. peace

  • @gerardorebolledo3385
    @gerardorebolledo3385 Рік тому +1

    This is a powerfull video, I would like to see carbon.👍

  • @sujalkhatiwada2267
    @sujalkhatiwada2267 Рік тому

    Yes sir, Carbon tutorials would be helpful ☺

  • @godmansarah
    @godmansarah 2 роки тому

    Definitely worth watching your videos!

  • @themaridv2000
    @themaridv2000 Рік тому

    yes! we would like to see the Carbon date library

  • @ilya_123__
    @ilya_123__ 11 місяців тому

    thank you for lesson!

  • @FranciscoJunior29
    @FranciscoJunior29 2 роки тому

    Another great content, thank you very much for your work.

  • @ehsantavakoli2418
    @ehsantavakoli2418 2 роки тому

    Thanks again for nice videos . I'll appreciate that if you make a video for carbon library . Thanks a lot .

  • @federicobau8651
    @federicobau8651 2 роки тому +1

    Great video,

  • @NedumEze
    @NedumEze 3 роки тому +1

    Please be sure to do Carbon. Looking forward to it. No experience with it at all

    • @ProgramWithGio
      @ProgramWithGio  3 роки тому

      It's really easy & great library. Will find time to make a video about it 👍

  • @soumadip_banerjee
    @soumadip_banerjee 2 роки тому +1

    ❤️ a request.. could u create an organised series? Where you'd teach PHP from scratch, to the most advanced topics, with each episode being 15-18 minutes long.. plz?

    • @ProgramWithGio
      @ProgramWithGio  2 роки тому

      What's wrong with this series? 🙂. I think this is a pretty organized series spread across 3 sections. Don't think I would make another one since this is the way I would want to learn PHP, it's why I'm teaching it this way. There are a lot of videos because there are a lot of topics to cover & some naturally are longer & some shorter. 👍

    • @godmansarah
      @godmansarah 2 роки тому +2

      Maybe checkout the playlist that this video is a part of - that is exactly what the playlist is :)

  • @benderbg
    @benderbg 2 місяці тому

    After watching this date time lesson I feel like I can manipulate time like Dr Strange!

  • @cabanelas
    @cabanelas 3 роки тому +2

    Please do Carbon video!

  • @memack101
    @memack101 2 роки тому

    Thank you.

  • @codobyte
    @codobyte 3 роки тому

    Thank you. Carbon: Yes please. :-)

  • @omaryahia
    @omaryahia Рік тому

    thanks a lot

  • @expresscoding3525
    @expresscoding3525 Рік тому

    It was really nice lesson, waiting for Carbon library tutorial too sir, and wanted to see features such as: let's say in a social network, when people are from different continents, but their equivalent online time is shown on own current time format(form), how to do such things ?

    • @ProgramWithGio
      @ProgramWithGio  Рік тому

      Thank you. You just need to format the date on front-end according to user's timezone

  • @Armando-px8hi
    @Armando-px8hi Рік тому

    Awesome!! BTW how long have you been in programming GIO?

  • @AMoktar
    @AMoktar Рік тому

    Thanks for this great course.
    Can I ask about DatePeriod class, how can this class having different constructors methods ?
    If you covered this topic please just refer me to the topic.
    Thanks again

    • @ProgramWithGio
      @ProgramWithGio  Рік тому +1

      That's just done on language level, PHP itself does not support multiple constructors with different method signatures.

    • @AMoktar
      @AMoktar Рік тому

      @@ProgramWithGio Thanks a lot

  • @floweringmind
    @floweringmind 2 роки тому

    Would be interested in a video on Carbon.

  • @barneylaurance1865
    @barneylaurance1865 Рік тому

    I think it's good to avoid the DateTime class and pretty much always prefer to use DateTimeImmutable instead. Probably the main reason people use DateTime is just because it has a shorter and simpler name than DateTimeImmutable.
    Or use a PHP library that provides immutable objects, like cake/chronos or brick/date-time. Or Carbon as mentioned in the video but then use the CarbonImmutable class not the Carbon class.

    • @ProgramWithGio
      @ProgramWithGio  Рік тому +1

      In general, I agree. Honestly, I think DateTime should just be immutable by default.

    • @barneylaurance1865
      @barneylaurance1865 Рік тому +1

      @@ProgramWithGio Derick Rethans has talked about possibly deprecating Datetime and then maybe eventually doing just that.

  • @parijke
    @parijke 3 роки тому

    Sure the carbon video would be awesome, maybe compare it to chronos

    • @ProgramWithGio
      @ProgramWithGio  3 роки тому

      Haven't used Chronos, so not sure about that but will take a look. Thanks 👍

    • @barneylaurance1865
      @barneylaurance1865 Рік тому

      Or to brick/date-time. That's the one I really want a chance to play with properly.

  • @bhardwaj_abhi3421
    @bhardwaj_abhi3421 Рік тому

    will there be laravel videos on this channel

  • @user-vh3lm3qo4t
    @user-vh3lm3qo4t 3 роки тому

    Carbon 👍

  • @NedumEze
    @NedumEze Рік тому

    Hey, Gio,
    Did you forget about the Carbon Library?
    Please recall your promise.
    We need your help with the Library.

    • @ProgramWithGio
      @ProgramWithGio  Рік тому +1

      Hey, no I didn't forget, I just don't have the free time to make the video on it. Still working on the PHP series. Will get to it after we finish the series

    • @NedumEze
      @NedumEze Рік тому

      @@ProgramWithGio
      Oh! Okay, take your time.
      Cheers, Gio.

  • @jantichopad678
    @jantichopad678 2 роки тому

    New in PHP 8.2.0 - DatePeriod::INCLUDE_END_DATE constant and include_end_date property have been added.

    • @ProgramWithGio
      @ProgramWithGio  2 роки тому

      Thanks, I'll probably make a video about changes in 8.2 closer to the 8.2 release

    • @jantichopad678
      @jantichopad678 2 роки тому

      @@ProgramWithGio Thank you for this series. I learned a lot of new things. ;-)

    • @csabakeri
      @csabakeri 6 місяців тому

      I preferred to set the time to "23:59:59" instead of using a +1 day workaround before this constant would have appeared.

  • @NedumEze
    @NedumEze 2 роки тому

    Please, Gio, remember the 'Carbon' promise.
    We're waiting

    • @ProgramWithGio
      @ProgramWithGio  2 роки тому +1

      Yup, that will be a stand alone video after I'm done with PHP series

  • @phixphixation7261
    @phixphixation7261 2 роки тому

    You say Amsterdam like a Dutch person would. I can know, I am from The Netherlands.

    • @ProgramWithGio
      @ProgramWithGio  2 роки тому +1

      I've been in Amsterdam one time due to my flight being cancelled, hope to visit it again for longer stay :)

  • @emekatimothyiloba699
    @emekatimothyiloba699 Рік тому

    Carbon is powerful

  • @michaelking4740
    @michaelking4740 2 роки тому

    The lesson information is good, but slow down. I have watched all your lessons to this point and would really like to recommend them to my college development classes but you move way too fast for most people learning something new. Take a breath and slow down a little bit.

    • @ProgramWithGio
      @ProgramWithGio  2 роки тому

      Thank you. I apologize for that, I tried improving on that in 3rd section and will continue to improve. Sometimes it's hard since it's the way I talk 🙂. Thanks for the feedback. As a solution to existing videos, you can slow down the playback on UA-cam.

    • @michaelking4740
      @michaelking4740 2 роки тому

      @@ProgramWithGio No need to apologize, the material is good, it was just a suggestion to slow down a little. I have been teaching for most of my like, I moved into development technology teaching about 15 years ago and have really enjoyed the change. I have found that the students are much more engaged with these types subjects because they want to be there unlike core subjects, which are required for most degrees. When I made the transition to teaching programming technologies I had to develop a much different approach to the subjects. I too had to learn to slow down my instructional methods. For many of my students, as I am sure is true for your participants, these are brand new topics and take a little while to sink in. I do plan to continue the series and will recommend sections to some of my students that may need additional help.

    • @ProgramWithGio
      @ProgramWithGio  2 роки тому

      @@michaelking4740 thank you 🙌

    • @Rimtay
      @Rimtay 11 місяців тому

      But for those who are a bit experienced and want to learn more about, the pace is perfect. Keep up the good work man.

  • @emekatimothyiloba699
    @emekatimothyiloba699 Рік тому

    Great work Gio. Please how can i connect with you on LinkedIn

    • @ProgramWithGio
      @ProgramWithGio  Рік тому

      Thank you. Best way to connect probably is via Twitter

  • @delisandor5337
    @delisandor5337 Рік тому

    great video