on 08-30-2007 12:32 PM
Hi all,
is there any standard function module,to convert sapdate to juliean date?
pleas help
thanx in advance
regards,
keerthi.
give rewards if it is useful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could you let us know, why you need Julian date?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In mapping?
If so use the std Date transformation function. With in a XML, you dont have anything like SAP date or JULIEN date.
Regards,
Jai Shankar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Julian Day Number from calendar date
_date2julian() # year-month-day
{
case $1 in "") date_vars; set -- $TODAY ;; esac
split_date $1 d2j_year d2j_month d2j_day || return 2
Calculate number of months from March
d2j_tmpmonth=$((12 * $d2j_year + $d2j_month - 3))
d2j_tmpyear=$(( $d2j_tmpmonth / 12))
DATE2JULIAN=$(( (734 * $d2jtmpmonth + 15) / 24 - 2 * $d2j_tmpyear + \
$d2j_tmpyear/4 - $d2j_tmpyear/100 + $d2j_tmpyear/400 + $d2j_day + 1721119 ))
}
regards
sasi
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.