Multiply Time Span : Date Operation « Date Time « VB.Net

Home
VB.Net
1.2D
2.Application
3.Class
4.Data Structure
5.Data Types
6.Database ADO.net
7.Date Time
8.Development
9.Event
10.File Directory
11.Generics
12.GUI
13.Internationalization I18N
14.Language Basics
15.LINQ
16.Network Remote
17.Reflection
18.Security
19.Thread
20.Windows Presentation Foundation
21.Windows System
22.XML
23.XML LINQ
VB.Net Tutorial
VB.Net by API
VB.Net » Date Time » Date OperationScreenshots 
Multiply Time Span
Multiply Time Span
 
Imports System

Public Class MainClass

    Shared Sub Main(ByVal args As String())
        Dim ts1, ts2 As TimeSpan
        ts1 = New TimeSpan(123)
        ts2 = New TimeSpan(ts1.Ticks * 12)
        Console.WriteLine(ts1.ToString)
        Console.WriteLine(ts2.ToString)
          
    End Sub

End Class


           
         
  
Related examples in the same category
1.Add time (days, hours) to current timeAdd time (days, hours) to current time
2.Date Time SubtractionDate Time Subtraction
3.Date Time and TimeSpan DemoDate Time and TimeSpan Demo
4.Add a day, a month and a year to a Date
5.Date = #11/4/2010 1:30:00AM#
6.CDate("10/26/2010 1:32:00 PM")
7.Arithmetic Operations with Dates and Times
8.Calculate the interval between the two dates
9.Display the date using the current (en-US) culture
10.Change the current culture to fr-FR and display the date
11.Change the current culture to ja-JP and display the date
12.Allow a leading space in the date string
13.Represents an instant in time, typically expressed as a date and time of day.
14.Create Date object from String
15.Date.Now, UtcNow and Today
16.Create Date from date string with time
17.Convert Date to string with fr-FR culture
18.Adds time interval to a specified date and time, yielding a new date and time.
19.Compare the difference between two Date value with Ticks
20.Compares two Date values
21.Gets the date component from String
22.Gets the day of the month from Date
23.Gets the milliseconds component of the date represented by this instance.
24.Ticks from a Date
25.Difference between local time and UTC
26.Display the ticks-per-time-unit fields
27.Add one and half Milliseconds
28.Gets the day of the week represented by this instance.
29.Returns the number of days in the specified month and year.
30.Find out the file age
31.Returns an indication whether the specified year is a leap year.
32.whether time is based on local time, Coordinated Universal Time (UTC), or neither.
33.Reverse month and day to conform to the fr-FR culture
w__w___w_._j__av__a__2s._c_o__m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.