Class Strftime


  • public class Strftime
    extends java.lang.Object
    An implementation of the Unix strftime with some glibc extensions.
    • Constructor Summary

      Constructors 
      Constructor Description
      Strftime()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String format​(java.lang.String format, java.util.Date date, java.util.Locale locale, java.util.TimeZone zone)
      Format a date string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Strftime

        public Strftime()
    • Method Detail

      • format

        public static java.lang.String format​(java.lang.String format,
                                              java.util.Date date,
                                              java.util.Locale locale,
                                              java.util.TimeZone zone)
        Format a date string.
        Parameters:
        format - The format in strftime syntax.
        date - The date to format.
        locale - The locale to use for formatting.
        zone - The timezone to use for formatting.
        Returns:
        The formatted datetime.