java - How to create a calendar object based on current time plus some seconds -


i wondering if can new calendar object based on current time plus given timespan, 5 minutes.

calendar c = calendar.getinstance(); //gives u calendar current time c.add(calendar.minute, 5); //add 5 minutes calendar 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -