Searching \ for '[PIC]: DATE and TIME macros' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/time.htm?key=time
Search entire site for: 'DATE and TIME macros'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: DATE and TIME macros'
2010\02\21@014816 by Justin Richards

face picon face
There are some __DATE_ and __TIME__ macros used in example code.

the compiler is C18, and I have searched  C18 Library, C18 help and
C18 getting started help.  Where is this stuff documented.

Are there other macros like these.

I am using mplab.

Cheers Justin

2010\02\21@020150 by Jesse Lackey

flavicon
face
Documented via google search results... they are built into the (all?) C
compiler.  Really useful sometimes.  I sometimes use them to output the
firmware build date/time on a LCD on power-up for various things.  Etc.

J

Justin Richards wrote:
> There are some __DATE_ and __TIME__ macros used in example code.
>
> the compiler is C18, and I have searched  C18 Library, C18 help and
> C18 getting started help.  Where is this stuff documented.
>
> Are there other macros like these.
>
> I am using mplab.
>
> Cheers Justin

2010\02\21@030511 by Justin Richards

face picon face
I am interested to know what others there are and to determine for
sure if there is an implied null character when ...

#define Build_Date __DATE__

strcpy(var,Build_Date);

so strcpy knows when to stop copying.

I figure there must be.


Cheers Justin

On 21 February 2010 15:02, Jesse Lackey <spam_OUTjsl-mlTakeThisOuTspamcelestialaudio.com> wrote:
{Quote hidden}

> -

2010\02\21@054058 by William \Chops\ Westfield

face picon face

On Feb 20, 2010, at 10:48 PM, Justin Richards wrote:

> Are there other macros like these.

http://gcc.gnu.org/onlinedocs/cpp/Standard-Predefined-Macros.html#Standard-Predefined-Macros

BillW

2010\02\21@061521 by Justin Richards

face picon face
perfect, thanks.

On 21 February 2010 18:40, William "Chops" Westfield <.....westfwKILLspamspam@spam@mac.com> wrote:
>
> On Feb 20, 2010, at 10:48 PM, Justin Richards wrote:
>
>> Are there other macros like these.
>
> http://gcc.gnu.org/onlinedocs/cpp/Standard-Predefined-Macros.html#Standard-Predefined-Macros
>
> BillW
>
> -

More... (looser matching)
- Last day of these posts
- In 2010 , 2011 only
- Today
- New search...