Showing posts with label Digital Clock. Show all posts
Showing posts with label Digital Clock. Show all posts

Wednesday, September 1, 2010

Digital Clock

While I was figuring out all of Android's preference framework, I developed a simple digital clock widget.  It has a simple background that can be turned off.  You can also enter a format string for both the time and date.  Here are a few common format strings:

  • 24 Hour: HH:mm
  • 24 Hour (no colon): HHmm
  • 12 Hour: hh:mm a
  • Date Options: 
    • E: Numeric day of week
    • EEE: Shortened day of week (Wed, Thur, etc.)
    • EEEE: Full day of week (Wednesday, Thursday, etc)
    • d: Day of month
    • M: Numeric month
    • MMM: Shortened month (Jan, Feb, etc.)
    • MMMM: Full month (January, February, etc.)