|
|
Discuss
>
Etcetera
|
|
|
User
|
Chirifischio
|
|
Date
|
8/29/2008 2:30 am
|
|
Views
|
666
|
|
Rating
|
0
Rate [ | ]
|
|
|
Previous
·
Next
|
Chirifischio
|
Date: 8/29/2008 2:30 am · Subject: LastModified question · Rating: 0
Hello!
I've read the lastModified macro gives the date related to the current page. Is there a way to apply it to the whole site? So it gives the date of the last modification of the site overall.
Thanks!
--- (Edited on 8/29/2008 2:30 am [GMT-0500] by Chirifischio) ---
|
| Back to Top |
Rate [ | ]
|
| |
perlDreamer
|
Date: 8/29/2008 12:57 pm · Subject: Re: LastModified question · Rating: 1
There is a table in the WebGUI database called assetHistory that keeps track of version control history. That might be your next best bet.
You can build a SQL Report, or use the SQL macro with this query to get the last change:
select dateStamp from assetHistory order by dateStamp limit 1
--- (Edited on 8/29/2008 10:57 am [GMT-0700] by perlDreamer) ---
|
| Back to Top |
Rate [ | ]
|
| |
Cirifischio
|
Date: 9/23/2008 2:59 am · Subject: Re: LastModified question · Rating: 0
Thanks for the help, no success yet but you showed the right path hopefully. I activated the SQL macro etc, still can't figure out the right syntax to get the date I need. I'm brand new to SQL...
--- (Edited on 9/23/2008 2:59 am [GMT-0500] by Cirifischio) ---
|
| Back to Top |
Rate [ | ]
|
| |
fdillon
|
Date: 9/23/2008 7:29 am · Subject: Re: LastModified question · Rating: 1
Try this:
^SQL("select FROM_UNIXTIME(max(revisionDate),'%m-%d-%Y') from assetData");
Here are the various format options for FROM_UNIXTIME :
| Specifier |
Description |
| %a |
Abbreviated weekday name
(Sun..Sat) |
| %b |
Abbreviated month name (Jan..Dec) |
| %c |
Month, numeric (0..12) |
| %D |
Day of the month with English suffix (0th,
1st, 2nd,
3rd, …) |
| %d |
Day of the month, numeric (00..31) |
| %e |
Day of the month, numeric (0..31) |
| %f |
Microseconds (000000..999999) |
| %H |
Hour (00..23) |
| %h |
Hour (01..12) |
| %I |
Hour (01..12) |
| %i |
Minutes, numeric (00..59) |
| %j |
Day of year (001..366) |
| %k |
Hour (0..23) |
| %l |
Hour (1..12) |
| %M |
Month name (January..December) |
| %m |
Month, numeric (00..12) |
| %p |
AM or PM
|
| %r |
Time, 12-hour (hh:mm:ss followed by
AM or PM) |
| %S |
Seconds (00..59) |
| %s |
Seconds (00..59) |
| %T |
Time, 24-hour (hh:mm:ss) |
| %U |
Week (00..53), where Sunday is the
first day of the week |
| %u |
Week (00..53), where Monday is the
first day of the week |
| %V |
Week (01..53), where Sunday is the
first day of the week; used with %X
|
| %v |
Week (01..53), where Monday is the
first day of the week; used with %x
|
| %W |
Weekday name (Sunday..Saturday) |
| %w |
Day of the week
(0=Sunday..6=Saturday) |
| %X |
Year for the week where Sunday is the first day of the week, numeric,
four digits; used with %V
|
| %x |
Year for the week, where Monday is the first day of the week, numeric,
four digits; used with %v
|
| %Y |
Year, numeric, four digits |
| %y |
Year, numeric (two digits) |
| %% |
A literal “%” character |
| %x |
x, for any
“x” not listed
abov |
--- (Edited on 9/23/2008 7:29 am [GMT-0500] by fdillon) ---
|
| Back to Top |
Rate [ | ]
|
| |
Cirifischio
|
Date: 9/24/2008 2:19 am · Subject: Re: LastModified question · Rating: 0
:DD
It seems it works fine! Thanks a lot!
--- (Edited on 9/24/2008 2:19 am [GMT-0500] by Cirifischio) ---
|
| Back to Top |
Rate [ | ]
|
| |
|
|
Recent Discussions Color Key |
| Design: |
|
| Development: |
|
| Et Cetera: |
|
| Install/Upgrade: |
|
| Smoketest: |
|
| Template Group: |
|
Re: Navigation links by rogier - Fri @ 04:06pm Re: Navigation links by techwriter - Fri @ 03:23pm Re: Best way to make files available to webgui comunity by bernd - Fri @ 02:50pm Re: Best way to make files available to webgui comunity by lctn2 - Fri @ 01:55pm Re: Strategic Roadmap by JT - Fri @ 01:55pm Re: Navigation links by rogier - Fri @ 01:55pm Re: 2009 Presidents Meeting by JT - Fri @ 01:10pm Re: navigation new window by rogier - Fri @ 01:03pm Re: navigation new window by rogier - Fri @ 12:53pm Re: WUC 2009 by JT - Fri @ 12:50pm Re: Best way to make files available to webgui comunity by preaction - Fri @ 12:35pm Re: Pagination markup by rogier - Fri @ 12:35pm Re: Best way to make files available to webgui comunity by kristi - Fri @ 12:29pm
|