Difference between revisions of "Template:Darwin's Scripts"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 23: Line 23:
<div style="padding: 0.5em">
<div style="padding: 0.5em">
Finds the difference in days between two dates. Dates are used in the format yyyy-mm-dd
Finds the difference in days between two dates. Dates are used in the format yyyy-mm-dd
<lsl>
<lsl>integer dateDiff(string date1, string date2)
integer dateDiff(string date1, string date2)
{
{
     list months = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
     list months = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];

Revision as of 15:14, 26 November 2008


{{Darwin's Scripts|script name}}

Returns lsl scripts

Contents:

  • find screen width
  • color picker
  • date difference