I everyone looking back at this adorable and destructo relatable core and explore the duration class
that's darksome They first and then they go into the core duration is it time based representation in
our minutes seconds and now seconds.
Duration Gause is compatible with local time and local date time.
This is used to the present duration of time not just a specific time.
What do we mean by that.
That say you want to define a duration of three hours.
Then its possible by using the fact that there is part of that duration glass which is off.
RS this represent a duration of three Rs.
That's a 1 percent a duration of three minutes.
That is a handy off minutes method that you can use.
That is part of the duration clause in order replacement or duration of 30 or 40 minutes.
The most general use case of duration is dark to calculate the difference between the two objects or
the time objects can be local time and local Date Time.
Let's take a look at this example this example a particular part of the Loper time represents seven
Archstone dominance and the local time warner presents 8 hours and 30 minutes.
If you posit those two times that between moderate is going to give you the difference between those
two instances that go higher and explore this using some examples.
When I go back to the Including And in the time dates back Ajam to read of class
on batting Nimes you Rhaetian example and then want to make discloser you go to will be arding public
static wide beam of that.
Now let's read that to final instance before that I'm going to pull this in doesn't Dushan more so that
before.
We'll King or
local time.
Let's give it a name.
It's going to be local time datt off.
We're going to get the value of 7 of 120 that we need on other instance it's going to be local 9 1 and
this is going to be eight are sent 20 minutes the minute of the day.
Instance even the diamonds joins us until Monday.
I'm going to give local time d'arte until and then by the end of the time instance.
Now we could get a --.
It gives you a competition issue here.
Why do you have to specify Zari have to specify what is a unit that you were expecting as output.
So I'm going to need what is a number of minutes time difference between those so this one is give me
the longest research but in the Keys of beat we go to Piedras or work here it gives you the minute little
bit of the rate.
So we don't give it a name as deaths.
We go to the limited the runs along which is the difference between the two kinds Let's go and check
the research.
And the end time is always explosive.
It's check the results so that it will be clear if you take a look at the time the difference the difference
this 60 Minutes data difference between these two times.
Let's go ahead and explore the curation class and use the a third that is part of the duration Clauson
buys these shootings.
Not a dime any longer dime one.
This is going to return the ration Azer or no what we will do is we will explore what other does that
are part of the duration object so duration darte particular it just supports two minutes to ours and
get seconds.
It's too late.
Get seconds.
Now I know and get units are going do like two minutes who are still nine.
One thing if you notice here there is Norbit retired methods are supported us for the duration.
That's a reason why duration is compatible only with local time and look lead and time.
And what about almoner to just going to gumi the total number of minutes difference between these two
things.
Anderson check those and reserved the cool luminance gave you the resurged us Eckstine nets that explore
some of the factors that are part of the division.
Do you want to read duration off for some parts.
There you go.
And then we will pause the RS us the Ares and this will give you the duration as the four that's under
us and check the oil if you Rondo's example I'm going to do.
We know that it is going to represent the duration of three pars that's due to minutes and then see
what is Allport that it is going to print
you go let's run this example on Jager's said we're on those Day-Glo were it converted into Rs 2 minutes
and then given the who served us one maybe because each are represent 60 Minutes.
Here we have the RS 360 equal and 180 minutes.
We want to create a duration of three minutes in dual blowing off minutes.
And one thing if in order zero gain it just has the days Malise minutes and most of seconds and seconds
really doesn't support any of the deep methods like the month year.
So if you have any use cases that are leading to the pain relief and logic where you want to find the
difference between the two times then please go ahead and use two Rhaetian if you have any data related
compartments.
Then please go ahead and use the fuel your gas.
Now what we will do is we'll try to positive deed to the duration dark between matter and then check.
Is it compatible or not.
So I'm going to create Bates local aid.
Dead people do local DA not now and then other instances are going to be a local one.
God bless these people.
Can you think by this what would happen.
What I intend there that that will lead one that this is going to give me did not give you any number
even issues.
Let's check whether is it going to throw an exception during that on time.
Well under US
give you go exception the runtime.
So I'm supported the unit seconds.
Basically you cannot perform any kind of really good function out of this as part of the duration process.
Even though it did not give you any compilation issues this is going to give you the compilation.
The one thing you actually saw that in your mind.
Duration is only for that time really did want another piece of it this weekend to the end of the material.
Thank you for watching.