Joan Venge
Joan Venge

Reputation: 331430

How to implement Runtime for movies in C#?

I am writing a Movie class and I need to define the Runtime, for say 2h 15mn 45s for each movie. Is there a built in type in the BCL for this?

If not, what type should I define for this? Should it be called Interval or something?

Upvotes: 0

Views: 93

Answers (1)

JoshJordan
JoshJordan

Reputation: 12975

You can use the System.TimeSpan struct.

Upvotes: 11

Related Questions