WEBVTT

0
00:00.840 --> 00:06.570
I everyone looking back at this adorable and destructo relatable core and explore the duration class

1
00:06.930 --> 00:14.100
that's darksome They first and then they go into the core duration is it time based representation in

2
00:14.190 --> 00:17.870
our minutes seconds and now seconds.

3
00:19.420 --> 00:24.740
Duration Gause is compatible with local time and local date time.

4
00:24.810 --> 00:30.690
This is used to the present duration of time not just a specific time.

5
00:30.880 --> 00:32.120
What do we mean by that.

6
00:33.410 --> 00:37.050
That say you want to define a duration of three hours.

7
00:37.130 --> 00:42.890
Then its possible by using the fact that there is part of that duration glass which is off.

8
00:42.930 --> 00:46.890
RS this represent a duration of three Rs.

9
00:47.540 --> 00:51.230
That's a 1 percent a duration of three minutes.

10
00:51.270 --> 00:54.300
That is a handy off minutes method that you can use.

11
00:54.400 --> 01:01.310
That is part of the duration clause in order replacement or duration of 30 or 40 minutes.

12
01:01.500 --> 01:08.070
The most general use case of duration is dark to calculate the difference between the two objects or

13
01:08.100 --> 01:12.180
the time objects can be local time and local Date Time.

14
01:12.210 --> 01:18.120
Let's take a look at this example this example a particular part of the Loper time represents seven

15
01:18.120 --> 01:23.100
Archstone dominance and the local time warner presents 8 hours and 30 minutes.

16
01:23.100 --> 01:30.000
If you posit those two times that between moderate is going to give you the difference between those

17
01:30.330 --> 01:35.720
two instances that go higher and explore this using some examples.

18
01:36.280 --> 01:41.950
When I go back to the Including And in the time dates back Ajam to read of class

19
01:45.410 --> 01:56.890
on batting Nimes you Rhaetian example and then want to make discloser you go to will be arding public

20
01:56.890 --> 01:59.090
static wide beam of that.

21
01:59.110 --> 02:05.620
Now let's read that to final instance before that I'm going to pull this in doesn't Dushan more so that

22
02:05.620 --> 02:06.260
before.

23
02:06.430 --> 02:07.030
We'll King or

24
02:11.110 --> 02:12.380
local time.

25
02:12.590 --> 02:14.110
Let's give it a name.

26
02:14.160 --> 02:18.520
It's going to be local time datt off.

27
02:18.670 --> 02:29.240
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

28
02:29.460 --> 02:34.500
this is going to be eight are sent 20 minutes the minute of the day.

29
02:34.700 --> 02:37.960
Instance even the diamonds joins us until Monday.

30
02:38.340 --> 02:46.150
I'm going to give local time d'arte until and then by the end of the time instance.

31
02:46.150 --> 02:49.800
Now we could get a --.

32
02:49.880 --> 02:51.720
It gives you a competition issue here.

33
02:51.740 --> 02:57.820
Why do you have to specify Zari have to specify what is a unit that you were expecting as output.

34
02:57.920 --> 03:06.760
So I'm going to need what is a number of minutes time difference between those so this one is give me

35
03:06.960 --> 03:13.360
the longest research but in the Keys of beat we go to Piedras or work here it gives you the minute little

36
03:13.360 --> 03:15.020
bit of the rate.

37
03:15.130 --> 03:19.490
So we don't give it a name as deaths.

38
03:19.560 --> 03:27.870
We go to the limited the runs along which is the difference between the two kinds Let's go and check

39
03:27.870 --> 03:28.620
the research.

40
03:36.380 --> 03:38.820
And the end time is always explosive.

41
03:38.840 --> 03:44.150
It's check the results so that it will be clear if you take a look at the time the difference the difference

42
03:44.350 --> 03:49.180
this 60 Minutes data difference between these two times.

43
03:49.220 --> 03:56.060
Let's go ahead and explore the curation class and use the a third that is part of the duration Clauson

44
03:56.100 --> 03:57.360
buys these shootings.

45
03:57.590 --> 04:01.580
Not a dime any longer dime one.

46
04:01.750 --> 04:11.960
This is going to return the ration Azer or no what we will do is we will explore what other does that

47
04:11.960 --> 04:22.070
are part of the duration object so duration darte particular it just supports two minutes to ours and

48
04:22.080 --> 04:23.010
get seconds.

49
04:23.220 --> 04:23.830
It's too late.

50
04:23.850 --> 04:25.050
Get seconds.

51
04:25.380 --> 04:31.680
Now I know and get units are going do like two minutes who are still nine.

52
04:31.980 --> 04:38.280
One thing if you notice here there is Norbit retired methods are supported us for the duration.

53
04:38.280 --> 04:44.470
That's a reason why duration is compatible only with local time and look lead and time.

54
04:44.490 --> 04:51.090
And what about almoner to just going to gumi the total number of minutes difference between these two

55
04:51.090 --> 04:51.800
things.

56
04:54.040 --> 05:03.960
Anderson check those and reserved the cool luminance gave you the resurged us Eckstine nets that explore

57
05:03.980 --> 05:06.350
some of the factors that are part of the division.

58
05:06.430 --> 05:10.570
Do you want to read duration off for some parts.

59
05:10.690 --> 05:11.570
There you go.

60
05:11.710 --> 05:21.960
And then we will pause the RS us the Ares and this will give you the duration as the four that's under

61
05:21.970 --> 05:27.190
us and check the oil if you Rondo's example I'm going to do.

62
05:27.310 --> 05:33.250
We know that it is going to represent the duration of three pars that's due to minutes and then see

63
05:33.250 --> 05:35.210
what is Allport that it is going to print

64
05:39.120 --> 05:47.660
you go let's run this example on Jager's said we're on those Day-Glo were it converted into Rs 2 minutes

65
05:47.930 --> 05:54.240
and then given the who served us one maybe because each are represent 60 Minutes.

66
05:54.320 --> 05:58.700
Here we have the RS 360 equal and 180 minutes.

67
05:58.910 --> 06:05.150
We want to create a duration of three minutes in dual blowing off minutes.

68
06:05.210 --> 06:12.620
And one thing if in order zero gain it just has the days Malise minutes and most of seconds and seconds

69
06:12.920 --> 06:20.230
really doesn't support any of the deep methods like the month year.

70
06:20.420 --> 06:25.760
So if you have any use cases that are leading to the pain relief and logic where you want to find the

71
06:25.760 --> 06:30.980
difference between the two times then please go ahead and use two Rhaetian if you have any data related

72
06:30.980 --> 06:31.730
compartments.

73
06:31.760 --> 06:35.570
Then please go ahead and use the fuel your gas.

74
06:35.570 --> 06:42.830
Now what we will do is we'll try to positive deed to the duration dark between matter and then check.

75
06:42.830 --> 06:44.220
Is it compatible or not.

76
06:44.260 --> 06:49.540
So I'm going to create Bates local aid.

77
06:50.960 --> 06:59.110
Dead people do local DA not now and then other instances are going to be a local one.

78
07:00.250 --> 07:02.880
God bless these people.

79
07:02.880 --> 07:06.300
Can you think by this what would happen.

80
07:06.470 --> 07:13.750
What I intend there that that will lead one that this is going to give me did not give you any number

81
07:13.760 --> 07:14.470
even issues.

82
07:14.470 --> 07:18.450
Let's check whether is it going to throw an exception during that on time.

83
07:19.370 --> 07:20.420
Well under US

84
07:23.070 --> 07:26.870
give you go exception the runtime.

85
07:26.880 --> 07:29.710
So I'm supported the unit seconds.

86
07:29.730 --> 07:35.870
Basically you cannot perform any kind of really good function out of this as part of the duration process.

87
07:35.880 --> 07:40.930
Even though it did not give you any compilation issues this is going to give you the compilation.

88
07:41.060 --> 07:43.560
The one thing you actually saw that in your mind.

89
07:43.560 --> 07:50.320
Duration is only for that time really did want another piece of it this weekend to the end of the material.

90
07:50.480 --> 07:51.100
Thank you for watching.