The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > OS X (Apple)
.
google unix.com



OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
date formatting aemunathan Shell Programming and Scripting 8 03-20-2009 12:17 PM
formatting date in ksh cesarNZ Shell Programming and Scripting 4 12-09-2008 11:17 PM
Date formatting knc9233 UNIX for Dummies Questions & Answers 8 01-16-2007 06:17 PM
date formatting mgirinath Shell Programming and Scripting 4 07-08-2006 05:08 AM
Formatting date radhika03 Shell Programming and Scripting 2 12-14-2005 02:56 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-21-2009
patricksprague patricksprague is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 1
Date Formatting, etc.

Hi -


I'm using GeekTool to customize my desktop in OS X 10.5.8

I'm a complete novice as far as UNIX commands, just know enough to be dangerous.

I have a command entered as a Shell to display my events from iCal:

Quote:
/usr/local/bin/icalBuddy eventsToday+3 | sed -e "s/*//" | sed -e "s/!/!!/"
This makes my events show something like this:

Quote:
Event Name (Calendar Name)
2009-08-24 at 24:00 - 24:00
While this is awesome, I'd like to customize it. For one, I'd like the date to be formatted as this:

Quote:
00.00.00
like I can do with this command:

Quote:
date '+%a %m%.%d%.%y'
and the time to be in 12 hour format

But I cannot seem to figure out how to make the iCal events date show correctly.

Help?!?!?
  #2 (permalink)  
Old 08-26-2009
[MA]Flying_Meat [MA]Flying_Meat is offline
Registered User
  
 

Join Date: Sep 2002
Location: San Fran
Posts: 130
See:
icalBuddy.1

Specifically the -tf reference.

See also:
Data Formatting Programming Guide for Cocoa: Date and Number Formatters on Mac OS X v10.0 to 10.3

Specifically the Format String Syntax

Example: "%m/%d/%y %H:%M:%S"
might be what you are looking for...
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:46 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0