Package org.ggf.drmaa

Examples of org.ggf.drmaa.PartialTimestamp


import org.ggf.drmaa.PartialTimestampFormat;

public class Howto7 {
   public static void main(String[] args) {
      try {
         PartialTimestamp date = new PartialTimestamp();
         PartialTimestampFormat format = new PartialTimestampFormat();
        
         date.set(PartialTimestamp.HOUR_OF_DAY, 13);
         date.set(PartialTimestamp.MINUTE, 0);
        
         System.out.println(format.format(date));
        
         date.setModifier(PartialTimestamp.DAY_OF_MONTH, 1);
        
         System.out.println(format.format(date));
         System.out.println(date.getTime().toString());
        
         date.setTimeInMillis(System.currentTimeMillis());
        
         System.out.println(format.format(date));
        
         date = format.parse("01/05 14:07:29");
        
View Full Code Here

TOP

Related Classes of org.ggf.drmaa.PartialTimestamp

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.