List:General Discussion« Previous MessageNext Message »
From:Dan Nelson Date:February 24 2003 10:46pm
Subject:Re: mysql or pathon date question
View as plain text  
In the last episode (Feb 24), Vivian Wang said:
> mysql,
> The question is:
> 
> If I use unix date Command like: date -date=20030220 +%j
> I will get 051 which is Julian date.
> 
> I like to know how I can get Julian date if I use mysql or Python.

Mysql's date_format function supports the same escapes the date command
does, for the most part:

mysql> SELECT DATE_FORMAT(20030220,'%j');
+----------------------------+
| 051                        |
+----------------------------+
1 row in set (0.00 sec)
 
-- 
	Dan Nelson
	dnelson@stripped
	sql, query
Thread
mysql or pathon date questionVivian Wang24 Feb
  • Re: mysql or pathon date questionDan Nelson24 Feb