[futurebasic] Re: [FB] Determine what day it is

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 2012 : Group Archive : Group : All Groups

From: Steve <mactech@...>
Date: Tue, 03 Apr 2012 14:29:43 -0400
thanks Brian and Ken


On Apr 3, 2012, at 2:24 PM, Brian S wrote:

> 
> On Apr 3, 2012, at 11:18 AM, Brian S wrote:
> 
> and don’t forget to release those CF objects ( like I did! ):
> 
> '-----------
> include "ConsoleWindow"
> 
> toolbox fn DateFormatCreateStringWithAbsoluteTime( CFStringRef formatString, CFAbsoluteTime  at ) = CFStringRef
> 
> dim as CFStringRef          dateStr
> dim as CFAbsoluteTime       at
> 
> at = fn CFAbsoluteTimeGetCurrent()
> 
> dateStr = fn DateFormatCreateStringWithAbsoluteTime( @"e", at )   // as a number 0 = Sun
> fn ConsolePrintCFString( dateStr )
> CFRelease( dateStr )
> 
> dateStr = fn DateFormatCreateStringWithAbsoluteTime( @"eee", at ) // Mon, Tue, etc.
> fn ConsolePrintCFString( dateStr ) 
> CFRelease( dateStr )
> 
> dateStr = fn DateFormatCreateStringWithAbsoluteTime( @"eeee", at )// Full name
> fn ConsolePrintCFString( dateStr )
> CFRelease( dateStr ) 
> '-----------
> 
> Brian S.
> 
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, send ANY message to: futurebasic-unsubscribe@...
> To access the list archives, go to:  http://freegroups.net/groups/futurebasic/
>