Technical Support
On-Line Manuals
RL-ARM User's Guide (MDK v4)
#include <net_config.h> U32 http_date ( RL_TIME* time ); /* Modification time in RL format. */
The http_date function converts the RL time format to UTC time format. This time is used by the Web server to control the browser local caching.
The argument time is the time provided in RL time format.
typedef struct { /* RL Time format */ U8 hr; /* Hours [0..23] */ U8 min; /* Minutes [0..59] */ U8 sec; /* Seconds [0..59] */ U8 day; /* Day [1..31] */ U8 mon; /* Month [1..12] */ U16 year; /* Year [1980..2107] */ } RL_TIME;
The http_date function is a system function that is in the RL-TCPnet library. The prototype is defined in net_config.h.
The http_date function returns UTF time in binary seconds.
U32 http_finfo (U8 *fname) { FINFO *info; U32 utc; info = (FINFO *)alloc_mem (sizeof (FINFO)); info->fileID = 0; utc = 0; if (ffind ((const char *)fname, info) == 0) { /* File found, save creation date in UTC format. */ utc = http_date (&info->time); } free_mem ((OS_FRAME *)info); return (utc); }
Cookie Settings | Terms of Use | Privacy | Accessibility | Trademarks | Contact Us | Feedback
Copyright © 2005-2019 Arm Limited (or its affiliates). All rights reserved.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
Change Settings
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.