Amiga Developer Site by i n n o i d e a | MorphOS | Amiga Developers | Compilers | Documents | Dev-HardFile v1.11 for UAE / real Amiga - readme - shot) | Unique/All Visitors: 77257/570053
Search manual for function in the   
AmigaOS/FormatDate

   NAME
	FormatDate -- generate a date string based on a date formatting
		      template. (V38)

   SYNOPSIS
	FormatDate(locale,fmtTemplate,date,putCharFunc);
	           A0     A1          A2   A3

	VOID FormatDate(struct Locale *,STRPTR,struct DateStamp *,
	                struct Hook *);

   FUNCTION
	This function processes a formatting template and generates
	a stream of bytes that's sent one character at a time to the
	putCharFunc callback hook.

   INPUTS
	locale - the locale to use for the formatting
	fmtTemplate - the NULL-terminated template describing the desired
		      format for the date. This is constructed just like
		      C-language printf() statements, except that different
		      formatting codes are used. Just like in C, formatting
		      codes start with a % followed by the formatting command.
		      The following commands are accepted by this function:

	                %a - abbreviated weekday name
	                %A - weekday name
	                %b - abbreviated month name
	                %B - month name
	                %c - same as "%a %b %d %H:%M:%S %Y"
	                %C - same as "%a %b %e %T %Z %Y"
	                %d - day number with leading 0s
	                %D - same as "%m/%d/%y"
	                %e - day number with leading spaces
	                %h - abbreviated month name
	                %H - hour using 24-hour style with leading 0s
	                %I - hour using 12-hour style with leading 0s
	                %j - julian date
	                %m - month number with leading 0s
	                %M - the number of minutes with leading 0s
	                %n - insert a linefeed
	                %p - AM or PM strings
	                %q - hour using 24-hour style
	                %Q - hour using 12-hour style
	                %r - same as "%I:%M:%S %p"
	                %R - same as "%H:%M"
	                %S - number of seconds with leadings 0s
	                %t - insert a tab character
	                %T - same as "%H:%M:%S"
	                %U - week number, taking Sunday as first day of week
	                %w - weekday number
	                %W - week number, taking Monday as first day of week
	                %x - same as "%m/%d/%y"
	                %X - same as "%H:%M:%S"
	                %y - year using two digits with leading 0s
	                %Y - year using four digits with leading 0s

	              If the template parameter is NULL, a single NULL byte
		      is sent to putCharFunc.
	date - the date to format into a string
	putCharFunc - a callback hook invoked for every character generated,
		      including for the terminating NULL character. The hook
		      is called with:

		 	A0 - address of Hook structure
			A1 - character for hook to process (not a pointer!)
	                A2 - locale pointer

   SEE ALSO
	ParseDate(), [libraries/locale.h], [dos/dos.h]


Logo by Emeric/SH
AmigaOS/FormatDate

No examples found...


Functions with "F":
FGetC
FGets
FPutC
FPuts
FREE_MEMORY
FRead
FUELGAUGE_GetClass
FWrite
FastRand
FattenLayerInfo
Fault
FilePart
FillRexxMsg
FilterTagChanges
FilterTagItems
FindAddressEntryA
FindArg
FindCliProc
FindCollection
FindColor
FindConductor
FindConfigDev
FindControllerID
FindDefaults
FindDiskName
FindDisplayInfo
FindDosEntry
FindLastSector
FindLocalItem
FindName
FindNamedObject
FindPort
FindProp
FindPropContext
FindResident
FindSegment
FindSemaphore
FindTagItem
FindTask
FindToolType
FindVar
Flood
Flush
FlushLayoutDomainCache
FontExtent
Forbid
Format
FormatDate
FormatString
FreeArgs
FreeAslRequest
FreeBitMap
FreeBrowserNodes
FreeChooserLabels
FreeChooserNode
FreeClass
FreeClickTabNode
FreeClickTabs
FreeColorMap
FreeConfigDev
FreeCopList
FreeCprList
FreeDBufInfo
FreeDeviceProc
FreeDiskObject
FreeDosEntry
FreeDosObject
FreeEntry
FreeExpansionMem
FreeFileRequest
FreeFreeList
FreeGBuffers
FreeGadgets
FreeIEvents
FreeIFF
FreeListBrowserList
FreeListBrowserNode
FreeLocalItem
FreeMem
FreeMenus
FreeMiscResource
FreeNVData
FreeNamedObject
FreePooled
FreePotBits
FreeRadioButtonNode
FreeRadioButtons
FreeRaster
FreeRemember
FreeScreenBuffer
FreeScreenDrawInfo
FreeSignal
FreeSpeedButtonNode
FreeSprite
FreeSpriteData
FreeSysRequest
FreeTagItems
FreeTrap
FreeUnit
FreeVPortCopLists
FreeVec
FreeVisualInfo

Last 15 uploaded Examples:

20071229151342 AmiSSL/X509_STORE_CTX_cleanup
20070708011052 GeekGadgets/getlogin
20060705053954 AmigaOS/OpenWorkbenchObjectA
20050801035639 SDL/SDL_Surface
20050727092732 BlitzBasic/LSL
20050718102843 SDL/SDL_WarpMouse
20050718072844 GeekGadgets/fread
20050714051528 SDL/SDL_ActiveEvent
20050714051514 SDL/SDL_ActiveEvent
20050701171401 GeekGadgets/errno
20050701171347 GeekGadgets/errno
20050627101951 SDL/SDL_FreeSurface
20050623152729 GeekGadgets/fork
20050619153102 GeekGadgets/tcdrain
20050615182849 AmigaOS/OpenScreen

Last 25 posts:

20050613235812 SDL/SDL_SetGammaRamp
20050526065000 AmiTCP/unistd.h
20050413041558 AmiSSL/X509_STORE_set_default_paths
20050409155750 AmigaDOS/Status
20050129230614 MUI/Calendar.mcc
20050128185620 GeekGadgets/hstrerror
20041126154558 BlitzBasic/LoadBank
20041123170704 GeekGadgets/gcvt
20041105222909 AmigaOS/CheckSignal
20040712190839 SDL/SDL_SetVideoMode
20040627090529 SDL/SDL_Init
20040519133228 GeekGadgets/fork
20040407124555 AmigaOS/AllocMem
20040403101120 GeekGadgets/inet_ntoa
20040327172814 GeekGadgets/random
20040327172714 GeekGadgets/srandom
20040313211937 BlitzBasic/ANALYZEDISK
20040303135237 GeekGadgets/mktemp
20040301131355 GeekGadgets/realpath
20040301123615 GeekGadgets/gcvt
20040301114000 GeekGadgets/htonl
20040301100209 GeekGadgets/realpath
20040229095437 GeekGadgets/time
20040211132618 GeekGadgets/getpid
20040209102818 AmigaOS/OpenWindow




Amiga.sf
AMIGIFT

Locations of visitors to this page

Page took 0.680194 seconds to load.