See how to create code that manipulates, formats, and uses date and time information.
- [Instructor] Julia also provides a module … for working with date and time information … which is what we will learn about in this example. … So I'll go ahead and open up … the datetime_start in my editor. … And you can see that I've imported the Dates module … with the using dates statement here … and that gives me access to the Date and DateTime classes. … So let's start with something simple. … I'm going to define two variables … that represent a Date and a DateTime combination. … So for the first one I'll have d1 … and that's going to be a Date … so I'll specify the year, month and day. … And then I'll have dt1 and I'll create a DateTime … and that's also going to have a year, month and day … and I'm going to leave the time information out … and then I'll just print these out to the output. … (keyboard clacking) … So, there's that and then we'll have … the carriage return and dt1. … Okay, so let's go ahead and try running that. … So let's switch over to the terminal … and all right so there you can see the Date output …
- Using the Julia REPL tool
- Differences between Julia and other languages
- Variables and data types
- Numbers in Julia
- Defining and operating on strings
- Using built-in functions in Julia
- Conditional statements
- Using array functions
- String processing
Skill Level Beginner
Python Basics for Java Developerswith Deepa Muralidhar42m 53s Beginner
Programming Foundations: Algorithmswith Joe Marini1h 45m Beginner
What you should know1m 26s
2. Language Basics
3. Language Features
4. Control Structures
5. Data Structures
6. Julia Features
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.