Rust Time Module and Chrono Crate Intro 🦀

Поділитися
Вставка
  • Опубліковано 28 вер 2024
  • In this video, we are going to explore a couple of structs in the Rust standard library time module. We will also take an introductory look at how to work with dates in the third party Chrono crate. In order to work with external APIs, file systems, databases, and other integrations, you'll need to know how to use dates and times in Rust programs.
    🤯 Rust Programming Playlist 🦀 • Rust Programming Tutor...
    📖 Rust std::time docs ➡️ doc.rust-lang....
    📖 Rust chrono docs ➡️ docs.rs/chrono
    Visual Studio Code ➡️ code.visualstu...
    Rust Website ➡️ rust-lang.org
    Rustup Installer ➡️ rustup.rs
    Rust Docs ➡️ doc.rust-lang....
    Please follow me on these other social channels!
    ➡️ trevorsullivan...
    ➡️ github.com/pcg...
    ➡️ / pcgeek86
    ➡️ / trevorsullivan
    ➡️ / trevorsoftware
    ➡️ tiktok.com/pcg...
    All trademarks, logos and brand names are the property of their respective owners. All company, product and service names used in this website are for identification purposes only. Use of these names,trademarks and brands does not imply endorsement.
    #rustlang #rust #rustdev #opensource #software #linux #devops #programming #rusty #dev #coding #codinglife #code #coder #ubuntu #ubuntulinux #appdev #developer

КОМЕНТАРІ • 10

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

    Check out the full Rust playlist for more Rust programming videos! 🦀 ➡➡➡➡ ua-cam.com/play/PLDbRgZ0OOEpUkWDGqp91ODn0dk7LPBAUL.html

  • @damianolmedo9248
    @damianolmedo9248 9 місяців тому

    thank you, I was learning rust by doing a mini project and the truth is that you are very helpful!

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

    Hi! The .ok() value you use at the end is unnecessary actually! You could just call unwrap() on the Result .ok() converts a result into an Option which is useful in when you are using filter_map or flat_map so that you can discard bad values in a Vec. For instance, you could flat_map or filter_map over a Vec of strings you want converted to i32 via the parse() function. You can call .ok() after the parse to convert to Option which is what flat_map and filter_map will take.

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

      Thank you for sharing your knowledge! I'm still picking up tips and tricks each and every day 🙂

  • @hanyanglee9018
    @hanyanglee9018 3 місяці тому

    Opt = optimized ? Im not sure.

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

    If im not mistaken, extern crate is no longer needed. You can just "use chrono" as if it was an std crate or a module if it's installed
    Thx for the great content!

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

      Thank you for the tip!! I figured it was needed based on some older content then. Rust on!! 🦀🦀

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

    thank you for the video, watched a whole thing in one sitting!

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

      Thanks for your support!! I'm glad you benefitted from this series! 🙂

  • @RolandHaller
    @RolandHaller 8 місяців тому

    That was really useful, thank you.